|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
The settings that decide which audio stream playback starts with. More...
#include <StreamUtils.h>
Static Public Member Functions | |
| static AudioPreferences | Current () |
| Read the settings as they currently stand. | |
Public Attributes | |
| KODI::UTILS::CLanguageTag | language |
| The language wanted. Empty when the preference is not a language. | |
| bool | preferOriginal {false} |
| The preference is "original language": prefer whichever stream is flagged original. | |
| bool | mediaDefault {false} |
| The preference is "media default". | |
| bool | preferHearingImpaired {false} |
| bool | preferVisualImpaired {false} |
| bool | preferDefaultFlag {false} |
| bool | preferStereo {false} |
| Prefer a stereo stream. This follows from the audio output layout rather than a setting, so only the player can fill it in; the library leaves it false. | |
The settings that decide which audio stream playback starts with.
Read once and reused for every comparison, so that a setting changed midway through cannot make a sort order inconsistent, and so a sort does not pay for a settings lookup per comparison.
|
static |
Read the settings as they currently stand.
| KODI::UTILS::CLanguageTag StreamUtils::AudioPreferences::language |
The language wanted. Empty when the preference is not a language.
| bool StreamUtils::AudioPreferences::mediaDefault {false} |
The preference is "media default".
| bool StreamUtils::AudioPreferences::preferDefaultFlag {false} |
| bool StreamUtils::AudioPreferences::preferHearingImpaired {false} |
| bool StreamUtils::AudioPreferences::preferOriginal {false} |
The preference is "original language": prefer whichever stream is flagged original.
| bool StreamUtils::AudioPreferences::preferStereo {false} |
Prefer a stereo stream. This follows from the audio output layout rather than a setting, so only the player can fill it in; the library leaves it false.
| bool StreamUtils::AudioPreferences::preferVisualImpaired {false} |