diff options
Diffstat (limited to 'src/media.c')
-rw-r--r-- | src/media.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/media.c b/src/media.c index 2ec2109d..180c28e6 100644 --- a/src/media.c +++ b/src/media.c | |||
@@ -469,6 +469,15 @@ iPlayer *audioPlayer_Media(const iMedia *d, iMediaId audioId) { | |||
469 | return NULL; | 469 | return NULL; |
470 | } | 470 | } |
471 | 471 | ||
472 | void pauseAllPlayers_Media(const iMedia *d, iBool setPaused) { | ||
473 | for (size_t i = 0; i < size_PtrArray(&d->audio); ++i) { | ||
474 | const iGmAudio *audio = constAt_PtrArray(&d->audio, i); | ||
475 | if (audio->player) { | ||
476 | setPaused_Player(audio->player, setPaused); | ||
477 | } | ||
478 | } | ||
479 | } | ||
480 | |||
472 | iBool downloadInfo_Media(const iMedia *d, iMediaId downloadId, iGmMediaInfo *info_out) { | 481 | iBool downloadInfo_Media(const iMedia *d, iMediaId downloadId, iGmMediaInfo *info_out) { |
473 | if (downloadId > 0 && downloadId <= size_PtrArray(&d->downloads)) { | 482 | if (downloadId > 0 && downloadId <= size_PtrArray(&d->downloads)) { |
474 | const iGmDownload *dl = constAt_PtrArray(&d->downloads, downloadId - 1); | 483 | const iGmDownload *dl = constAt_PtrArray(&d->downloads, downloadId - 1); |