*/
class CPulseStreamSpec {
public:
- /* Constants */
- enum EStreamLatency {
+ /* Enums */
+ enum class EStreamLatency : unsigned int {
STREAM_LATENCY_INPUT_LOW,
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
};
- private:
- /* Members */
- EStreamLatency mLatency;
- CAudioInfo mAudioInfo;
- pa_sample_spec mSampleSpec;
- pa_channel_map mChannelMap;
- const char* mStreamName;
-
- /* private meethod */
- void _adjustSpec() throw (CAudioError);
-
- public:
/* 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(EStreamLatency latency, CAudioInfo& audioInfo, int customLatency);
~CPulseStreamSpec();
/* Setter & Getter */
EStreamLatency getStreamLatency();
- CAudioInfo getAudioInfo();
+ const char* getStreamLatencyToString();
+ CAudioInfo& getAudioInfo();
pa_sample_spec getSampleSpec();
pa_channel_map getChannelMap();
const char* getStreamName();
+
+ private:
+ /* Private Methods */
+ void __adjustSpec();
+
+ /* Members */
+ EStreamLatency __mLatency;
+ CAudioInfo __mAudioInfo;
+ pa_sample_spec __mSampleSpec;
+ pa_channel_map __mChannelMap;
+ const char* __mStreamName;
};