1 // AudioAdapterAddOn.h 2 // * PURPOSE 3 // To test the IAudioOp framework, this add-on creates 4 // 'do-nothing' filter nodes. 5 // 6 // * TO DO 7 // +++++ reflect build time in node info 8 // 9 // * HISTORY 10 // e.moon 8sep99 Begun 11 12 #ifndef __AudioAdapterAddOn_H__ 13 #define __AudioAdapterAddOn_H__ 14 15 #include <MediaAddOn.h> 16 17 // -------------------------------------------------------- // 18 19 class AudioAdapterAddOn : 20 public BMediaAddOn { 21 typedef BMediaAddOn _inherited; 22 23 public: // ctor/dtor 24 // virtual ~AudioAdapterAddOn(); 25 explicit AudioAdapterAddOn(image_id image); 26 27 public: // BMediaAddOn impl 28 virtual status_t InitCheck( 29 const char** out_failure_text); 30 virtual int32 CountFlavors(); 31 virtual status_t GetFlavorAt( 32 int32 n, 33 const flavor_info ** out_info); 34 virtual BMediaNode * InstantiateNodeFor( 35 const flavor_info * info, 36 BMessage * config, 37 status_t * out_error); 38 virtual status_t GetConfigurationFor( 39 BMediaNode * your_node, 40 BMessage * into_message); 41 42 virtual bool WantsAutoStart() { return false; } 43 virtual status_t AutoStart( 44 int in_count, 45 BMediaNode ** out_node, 46 int32 * out_internal_id, 47 bool * out_has_more) { return B_OK; } 48 }; 49 50 #endif /*__AudioAdapterAddOn_H__*/ 51