X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2FCPulseStreamSpec.h;h=97a45365f23124b461a5bba7d0723ca72b4766ef;hb=32167441748e357ae14cc2673f4c5899ce3877c0;hp=7d9ed9606a0060ff28f60cdb12ada247416da526;hpb=82fb9a1ddddaf648935fdeea00913ced6663c081;p=platform%2Fcore%2Fapi%2Faudio-io.git diff --git a/include/CPulseStreamSpec.h b/include/CPulseStreamSpec.h index 7d9ed96..97a4536 100644 --- a/include/CPulseStreamSpec.h +++ b/include/CPulseStreamSpec.h @@ -38,40 +38,39 @@ namespace tizen_media_audio { STREAM_LATENCY_INPUT_MID, STREAM_LATENCY_INPUT_HIGH, STREAM_LATENCY_INPUT_VOIP, + STREAM_LATENCY_INPUT_DEFAULT, STREAM_LATENCY_OUTPUT_LOW, STREAM_LATENCY_OUTPUT_MID, STREAM_LATENCY_OUTPUT_HIGH, STREAM_LATENCY_OUTPUT_VOIP, + STREAM_LATENCY_OUTPUT_DEFAULT, + STREAM_LATENCY_OUTPUT_DEFAULT_ASYNC, STREAM_LATENCY_MAX }; /* Constructor & Destructor */ - CPulseStreamSpec() throw (CAudioError); - CPulseStreamSpec(EStreamLatency latency, CAudioInfo& audioInfo) throw (CAudioError); - CPulseStreamSpec(EStreamLatency latency, CAudioInfo& audioInfo, int customLatency) throw (CAudioError); - ~CPulseStreamSpec(); + CPulseStreamSpec(EStreamLatency latency, CAudioInfo& audioInfo); + ~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() throw (CAudioError); + 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