| 91 | #endif |
| 92 | |
| 93 | void 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 | |
| 112 | void AudioController::OnAudioProvider(agi::AudioProvider *new_provider) |
| 113 | { |
nothing calls this directly
no test coverage detected