Go to the documentation of this file.
9 #define LOC QString("PlayerAudio: ")
36 qRegisterMetaType<MythAudioPlayerState>();
37 qRegisterMetaType<MythAudioState>();
64 LOG(VB_GENERAL, LOG_INFO,
LOC +
"Initialising audio");
117 UpdateOSDStatus(tr(
"Adjust Volume"), tr(
"Volume"), QString::number(volume),
143 case kMuteOff: text = tr(
"Mute Off");
break;
144 case kMuteAll: text = tr(
"Mute On");
break;
145 case kMuteLeft: text = tr(
"Left Channel Muted");
break;
146 case kMuteRight: text = tr(
"Right Channel Muted");
break;
167 if (newupmixing != oldupmixing)
189 if ((Value >= -1000ms) && (Value <= 1000ms))
203 if (newwrap != oldwrap)
void EnableUpmix(bool Enable, bool Toggle=false)
void addVisual(MythTV::Visual *vis)
void AudioPlayerStateChanged(const MythAudioPlayerState &AudioPlayerState)
MythPlayerAudioUI(MythMainWindow *MainWindow, TV *Tv, PlayerContext *Context, PlayerFlags Flags)
AudioOutputGraph m_audioGraph
void SetupAudioGraph(double VideoFrameRate)
QString ReinitAudio(void)
float m_tsNormal
Time stretch speed, 1.0F for normal playback.
bool EnableUpmix(bool enable, bool toggle=false)
void AudioPlayerStateChanged(MythAudioPlayerState State)
void SetSampleCount(uint16_t SampleCount)
void SetStretchFactor(float factor)
void PauseAudioUntilBuffered()
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
bool HasAudioOut(void) const
@ kOSDFunctionalType_PictureAdjust
virtual void InitialiseState()
MuteState GetMuteState(void)
bool ControlsVolume(void) const
void SetSampleRate(uint16_t SampleRate)
void SetAudioInfo(const QString &main_device, const QString &passthru_device, uint samplerate, int codec_profile=-1)
Set audio output device parameters.
void UpdateOSDMessage(const QString &Message)
uint SetVolume(int newvolume)
void InitialiseState() override
Initialise audio and signal initial state.
void AudioStateChanged(MythAudioState State)
uint AdjustVolume(int change)
void ChangeOSDPositionUpdates(bool Enable)
std::enable_if_t< std::chrono::__is_duration< T >::value, T > GetDurSetting(const QString &key, T defaultval=T::zero())
MuteState IncrMuteState(void)
void AudioStateChanged(const MythAudioState &AudioState)
void AdjustAudioTimecodeOffset(std::chrono::milliseconds Delta, std::chrono::milliseconds Value)
MythCoreContext * gCoreContext
This global variable contains the MythCoreContext instance for the app.
void ChangeAudioOffset(std::chrono::milliseconds Delta, std::chrono::milliseconds Value=-9999ms)
int GetNumSetting(const QString &key, int defaultval=0)
const AudioOutputGraph & GetAudioGraph() const
bool GetBoolSetting(const QString &key, bool defaultval=false)
void removeVisual(MythTV::Visual *vis)
void ChangeUpmix(bool Enable, bool Toggle=false)
int GetSampleRate(void) const
void SetPainter(MythPainter *Painter)
@ kOSDFunctionalType_AudioSyncAdjust
void ChangeMuteState(bool CycleChannels)
void ChangeMuteState(bool CycleChannels=false)
void UpdateOSDStatus(osdInfo &Info, int Type, enum OSDTimeout Timeout)
void ForceSetupAudioStream(void)
void SetupAudioOutput(float TimeStretch)
void ChangeVolume(bool Direction, int Volume)
void PauseAudioUntilBuffered(void)
void PauseAudioUntilReady()
void ChangeVolume(bool Direction, int Volume)
QString GetSetting(const QString &key, const QString &defaultval="")