MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / OnAudioPlayerChanged

Method OnAudioPlayerChanged

src/audio_controller.cpp:93–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91#endif
92
93void AudioController::OnAudioPlayerChanged()
94{
95 if (!provider) return;
96
97 Stop();
98 player.reset();
99
100 try
101 {
102 player = AudioPlayerFactory::GetAudioPlayer(provider, context->parent);
103 }
104 catch (...)
105 {
106 /// @todo This really shouldn't be just swallowing all audio player open errors
107 context->project->CloseAudio();
108 }
109 AnnounceAudioPlayerOpened();
110}
111
112void AudioController::OnAudioProvider(agi::AudioProvider *new_provider)
113{

Callers

nothing calls this directly

Calls 1

CloseAudioMethod · 0.80

Tested by

no test coverage detected