8#ifndef META_OCEAN_MEDIA_SOUND_MEDIUM_H
9#define META_OCEAN_MEDIA_SOUND_MEDIUM_H
64 inline SoundType(
const SoundFrequency frequency,
const unsigned int channels,
const unsigned int bitsPerSample);
76 inline unsigned int channels()
const;
82 inline unsigned int bitsPerSample()
const;
94 inline void setChannels(
const unsigned int channels);
100 inline void setBitsPerSoundSample(
const unsigned int bits);
107 inline bool operator==(
const SoundType& right)
const;
114 inline bool operator<(
const SoundType& right)
const;
122 unsigned int channels_ = 0u;
125 unsigned int bitsPerSample_ = 0u;
173 inline bool hasSound()
const;
179 inline unsigned int soundChannels()
const;
191 inline unsigned int soundBitsPerSample()
const;
211 inline unsigned int preferredSoundChannels()
const;
223 inline unsigned int preferredSoundBitsPerSample()
const;
287 frequency_(frequency),
289 bitsPerSample_(bitsPerSample)
306 return bitsPerSample_;
311 frequency_ = frequency;
316 channels_ = channels;
321 bitsPerSample_ = bits;
This class implements a timestamp.
Definition Timestamp.h:64
bool isInvalid() const
Returns whether the timestamp holds an invalid time.
Definition Timestamp.h:651
The namespace covering the entire Ocean framework.
Definition Accessor.h:15