1 // AudioAdapterParams.h 2 #ifndef AUDIO_ADAPTER_PARAMS_H 3 #define AUDIO_ADAPTER_PARAMS_H 4 5 6 #include "IParameterSet.h" 7 8 #include <MediaDefs.h> 9 10 11 class _AudioAdapterParams : public IParameterSet { 12 public: 13 enum parameter_id { 14 // input format restrictions (0 = 'wildcard') 15 P_INPUT_FORMAT = 101, 16 P_INPUT_CHANNEL_COUNT, 17 18 // output format restrictions (0 = 'wildcard') 19 P_OUTPUT_FORMAT = 201, 20 P_OUTPUT_CHANNEL_COUNT 21 }; 22 23 public: 24 _AudioAdapterParams() 25 : 26 inputFormat(media_raw_audio_format::wildcard), 27 outputFormat(media_raw_audio_format::wildcard) 28 {} 29 30 status_t store(int32 parameterID, const void* data, size_t size); 31 status_t retrieve(int32 parameterID, void* data, size_t* ioSize); 32 void populateGroup(BParameterGroup* group); 33 34 public: // accessible parameters 35 media_multi_audio_format inputFormat; 36 media_multi_audio_format outputFormat; 37 }; 38 39 #endif // AUDIO_ADAPTER_PARAMS_H 40