revise CAudioInfo conversion
[platform/core/api/audio-io.git] / include / CAudioInfo.h
index 3ccc58f..82ee921 100644 (file)
@@ -127,11 +127,13 @@ namespace tizen_media_audio {
         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 */
@@ -173,6 +175,9 @@ namespace tizen_media_audio {
             "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;