xref: /haiku/src/apps/cortex/addons/audioOps/NullAudioOp.h (revision a0795c6fe30e25338049a952326c61deb7a343b6)
1 // NullAudioOp.h
2 // * PURPOSE
3 //   To test the IAudioOp framework, this file includes
4 //   an IAudioOpFactory implementation that creates
5 //   'do-nothing' operations.  (This operation literally
6 //   does nothing -- it doesn't even copy the input buffer
7 //   to the output, so beware!)
8 //
9 // * HISTORY
10 //   e.moon		8sep99		Begun
11 
12 #ifndef __NullAudioOp_H__
13 #define __NullAudioOp_H__
14 
15 #include "IAudioOpFactory.h"
16 
17 class NullAudioOpFactory :
18 	public	IAudioOpFactory {
19 public:											// *** INTERFACE
20 	// The basic create method.
21 	// Return 0 if no algorithm could be found for the given format.
22 
23 	IAudioOp* createOp(
24 		IAudioOpHost*										host,
25 		const media_raw_audio_format&		inputFormat,
26 		const media_raw_audio_format&		outputFormat); //nyi
27 
28 	IParameterSet* createParameterSet(); //nyi
29 };
30 
31 #endif /*__NullAudioOp_H__*/