void setAudioType(EAudioType audioType) noexcept;
int getAudioIndex() noexcept;
void setAudioIndex(int audioIndex) noexcept;
- void convertAudioType2StreamType(CAudioInfo::EAudioType audioType, char **streamType);
- void convertInputStreamType2AudioType(char *streamType, CAudioInfo::EAudioType *audioType);
- void convertOutputStreamType2AudioType(char *streamType, CAudioInfo::EAudioType *audioType);
int getSampleSize() noexcept;
+ /* Setter & Getter Utilities */
+ const char* getConvertedStreamType();
+ void setAudioTypeByInputStreamType(const char* streamType);
+ void setAudioTypeByOutputStreamType(const char* streamType);
+
private:
const char *__STREAM_TYPE_TABLE[(unsigned int)EAudioType::AUDIO_TYPE_MAX] = {
/* Input Type */
"network-source-media", /**< AUDIO_OUT_TYPE_MEDIA_NETWORK_SOURCE */
};
+ EAudioType convertInputStreamTypeToAudioType(const char *streamType);
+ EAudioType convertOutputStreamTypeToAudioType(const char *streamType);
+
unsigned int __mSampleRate;
EChannel __mChannel;
ESampleType __mSampleType;