Audio items enumerations. More...
Functions | |
UInt32 | Murl::IEnums::GetSampleFormatByteSize (SampleFormat sampleFormat) |
Query the number of bytes per sample for a given sample format. More... | |
Detailed Description
Audio items enumerations.
Enumeration Type Documentation
◆ AudioSessionCategory
Available audio session categories.
Enumerator | |
---|---|
AUDIO_SESSION_CATEGORY_DEFAULT | The default category, no audio session category is applied. String value: |
AUDIO_SESSION_CATEGORY_SOLO_AMBIENT | The solo ambient category, silences other audio. String value: |
AUDIO_SESSION_CATEGORY_MIX_AMBIENT | The mix ambient category, mixes other audio. String value: |
AUDIO_SESSION_CATEGORY_MIX_AMBIENT_IF_PLAYING | The mix ambient category, mixes if another audio is playing at app start. String value: |
AUDIO_SESSION_CATEGORY_PLAYBACK | The playback category, audio continues playing if app is in background. String value: |
◆ SampleFormat
Available sample formats for sound playback.
Enumerator | |
---|---|
SAMPLE_FORMAT_DEFAULT | The default sample format specified in a sound resource. String value: |
SAMPLE_FORMAT_MONO_8_BIT | 8bit mono (1 Byte per sample) String value: |
SAMPLE_FORMAT_MONO_16_BIT | 16bit mono (2 Bytes per sample) String value: |
SAMPLE_FORMAT_STEREO_8_BIT | 8bit stereo (2 Bytes per sample) String value: |
SAMPLE_FORMAT_STEREO_16_BIT | 16bit stereo (4 Bytes per sample) String value: |
◆ AudioStreamFormat
◆ DistanceModel
Available distance models for audio volume attenuation.
See Graph::IListener for a detailed description.
Enumerator | |
---|---|
DISTANCE_MODEL_INVERSE | Inverse distance model. String value: |
DISTANCE_MODEL_INVERSE_CLAMPED | Inverse clamped distance model. String value: |
DISTANCE_MODEL_LINEAR | Linear distance model. String value: |
DISTANCE_MODEL_LINEAR_CLAMPED | Linear clamped distance model. String value: |
DISTANCE_MODEL_EXPONENT | Exponential distance model. String value: |
DISTANCE_MODEL_EXPONENT_CLAMPED | Exponential clamped distance model. String value: |
Function Documentation
◆ GetSampleFormatByteSize()
UInt32 Murl::IEnums::GetSampleFormatByteSize | ( | SampleFormat | sampleFormat | ) |
Query the number of bytes per sample for a given sample format.
- Parameters
-
sampleFormat The sample format to query.
- Returns
- The number of bytes per sample.