MCPcopy Create free account
hub / github.com/BruceDevices/firmware / pauseAudioPlayback

Function pauseAudioPlayback

src/modules/others/audio.cpp:322–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322bool 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
335bool isAudioPlaying() {
336 initAudioPlayer();

Callers 1

musicPlayerUIFunction · 0.85

Calls 1

initAudioPlayerFunction · 0.85

Tested by

no test coverage detected