xref: /haiku/src/apps/cortex/addons/AudioAdapter/AudioAdapterAddOn.h (revision b028e77473189065f2baefc6f5e10d451cf591e2)
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 #ifndef AUDIO_ADAPTER_ADD_ON_H
12 #define AUDIO_ADAPTER_ADD_ON_H
13 
14 
15 #include <MediaAddOn.h>
16 
17 
18 class AudioAdapterAddOn : public BMediaAddOn {
19 	typedef BMediaAddOn _inherited;
20 
21 	public:
22 		//virtual ~AudioAdapterAddOn();
23 		explicit AudioAdapterAddOn(image_id image);
24 
25 	public:	// BMediaAddOn impl
26 		virtual	status_t InitCheck(const char** out_failure_text);
27 		virtual	int32 CountFlavors();
28 		virtual	status_t GetFlavorAt(int32 n, const flavor_info** out_info);
29 		virtual	BMediaNode* InstantiateNodeFor(const flavor_info* info,
30 			BMessage* config, status_t* out_error);
31 		virtual	status_t GetConfigurationFor(BMediaNode* your_node,
32 				BMessage* into_message);
33 
34 		virtual	bool WantsAutoStart() { return false; }
35 		virtual	status_t AutoStart(int in_count, BMediaNode** out_node,
36 			int32* out_internal_id, bool* out_has_more) { return B_OK; }
37 };
38 
39 #endif	// AUDIO_ADAPTER_ADD_ON_H
40