fixup! Reset dump values when pause function is called
[platform/core/api/audio-io.git] / include / CPulseStreamSpec.h
index 16a29f7..97a4536 100644 (file)
@@ -44,36 +44,33 @@ namespace tizen_media_audio {
             STREAM_LATENCY_OUTPUT_HIGH,
             STREAM_LATENCY_OUTPUT_VOIP,
             STREAM_LATENCY_OUTPUT_DEFAULT,
+            STREAM_LATENCY_OUTPUT_DEFAULT_ASYNC,
             STREAM_LATENCY_MAX
         };
 
         /* Constructor & Destructor */
-        CPulseStreamSpec();
         CPulseStreamSpec(EStreamLatency latency, CAudioInfo& audioInfo);
-        CPulseStreamSpec(EStreamLatency latency, CAudioInfo& audioInfo, int customLatency);
-        ~CPulseStreamSpec();
+        ~CPulseStreamSpec() = default;
 
         /* Setter & Getter */
-        EStreamLatency getStreamLatency();
-        const char*    getStreamLatencyToString();
-        CAudioInfo&    getAudioInfo();
-        pa_sample_spec getSampleSpec();
-        pa_channel_map getChannelMap();
-        const char*    getStreamName();
+        EStreamLatency getStreamLatency() const noexcept;
+        const char*    getStreamLatencyToString() const noexcept;
+        CAudioInfo&    getAudioInfo() noexcept;
+        pa_sample_spec getSampleSpec() const noexcept;
+        pa_channel_map getChannelMap() const noexcept;
+        const char*    getStreamName() const noexcept;
 
     private:
         /* Private Methods */
-        void __adjustSpec();
+        void __adjustSpec() noexcept;
 
         /* Members */
-        EStreamLatency __mLatency;
+        EStreamLatency __mLatency { EStreamLatency::STREAM_LATENCY_INPUT_DEFAULT };
         CAudioInfo     __mAudioInfo;
         pa_sample_spec __mSampleSpec;
         pa_channel_map __mChannelMap;
-        const char*    __mStreamName;
+        const char*    __mStreamName {};
     };
-
-
 } /* namespace tizen_media_audio */
 
 #endif