| 320 | } |
| 321 | |
| 322 | bool pauseAudioPlayback() { |
| 323 | initAudioPlayer(); |
| 324 | |
| 325 | if (!g_audioPlayer) return false; |
| 326 | |
| 327 | PlaybackState currentState = g_audioPlayer->state; |
| 328 | if (currentState != PLAYBACK_PLAYING && currentState != PLAYBACK_PAUSED) { return false; } |
| 329 | |
| 330 | g_audioPlayer->pauseRequested = true; |
| 331 | |
| 332 | return true; |
| 333 | } |
| 334 | |
| 335 | bool isAudioPlaying() { |
| 336 | initAudioPlayer(); |
no test coverage detected