audio-io updated C++ coding rule
[platform/core/api/audio-io.git] / include / CAudioInfo.h
index 8feab06..2dba2a8 100644 (file)
@@ -29,9 +29,6 @@ namespace tizen_media_audio {
      */
     class CAudioInfo {
     public:
-        const static unsigned int MIN_SYSTEM_SAMPLERATE = 8000;
-        const static unsigned int MAX_SYSTEM_SAMPLERATE = 48000;
-
         enum EChannel {
             CHANNEL_MONO = 1,               /**< 1 channel, mono */
             CHANNEL_STEREO,                 /**< 2 channel, stereo */
@@ -87,14 +84,27 @@ namespace tizen_media_audio {
             AUDIO_IO_STATE_PAUSED,    /**< Audio-io handle is ready and the stream is paused */
         };
 
-    private:
-        unsigned int mSampleRate;
-        EChannel     mChannel;
-        ESampleType  mSampleType;
-        EAudioType   mAudioType;
-        int          mAudioIndex;
+        const static unsigned int MIN_SYSTEM_SAMPLERATE = 8000;
+        const static unsigned int MAX_SYSTEM_SAMPLERATE = 48000;
+
+        /* Constructors */
+        CAudioInfo();
+        CAudioInfo(unsigned int sampleRate, EChannel channel, ESampleType sampleType, EAudioType audioType, int audioIndex) throw (CAudioError);
+
+        /* Setter & Getter */
+        unsigned int getSampleRate();
+        EChannel getChannel();
+        ESampleType getSampleType();
+        EAudioType getAudioType();
+        void setAudioType(EAudioType AudioType);
+        int getAudioIndex();
+        void setAudioIndex(int AudioIndex);
+        void convertAudioType2StreamType (CAudioInfo::EAudioType audioType, char **streamType);
+        void convertInputStreamType2AudioType (char *streamType, CAudioInfo::EAudioType *audioType);
+        void convertOutputStreamType2AudioType (char *streamType, CAudioInfo::EAudioType *audioType);
 
-        const char *StreamTypeTable[AUDIO_TYPE_MAX] = {
+    private:
+        const char *__STREAM_TYPE_TABLE[AUDIO_TYPE_MAX] = {
             /* Input Type */
             "media",                  /**< AUDIO_IN_TYPE_MEDIA */
             //"system",                 /**< AUDIO_IN_TYPE_SYSTEM */
@@ -128,24 +138,14 @@ namespace tizen_media_audio {
             //"loopback",               /**< AUDIO_OUT_TYPE_LOOPBACK */
         };
 
-    public:
-        /* Constructors */
-        CAudioInfo();
-        CAudioInfo(unsigned int sampleRate, EChannel channel, ESampleType sampleType, EAudioType audioType, int audioIndex) throw (CAudioError);
-
-        /* Setter & Getter */
-        unsigned int getSampleRate();
-        EChannel getChannel();
-        ESampleType getSampleType();
-        EAudioType getAudioType();
-        void setAudioType(EAudioType AudioType);
-        int getAudioIndex();
-        void setAudioIndex(int AudioIndex);
-        void convertAudioType2StreamType (CAudioInfo::EAudioType audioType, char **streamType);
-        void convertInputStreamType2AudioType (char *streamType, CAudioInfo::EAudioType *audioType);
-        void convertOutputStreamType2AudioType (char *streamType, CAudioInfo::EAudioType *audioType);
+        unsigned int __mSampleRate;
+        EChannel     __mChannel;
+        ESampleType  __mSampleType;
+        EAudioType   __mAudioType;
+        int          __mAudioIndex;
     };
 
+
 } /* namespace tizen_media_audio */
 
 #endif