diff options
Diffstat (limited to 'src/media.c')
-rw-r--r-- | src/media.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/media.c b/src/media.c index b72ec32c..ddf5d45f 100644 --- a/src/media.c +++ b/src/media.c | |||
@@ -266,3 +266,11 @@ iBool audioInfo_Media(const iMedia *d, iMediaId audioId, iGmAudioInfo *info_out) | |||
266 | iZap(*info_out); | 266 | iZap(*info_out); |
267 | return iFalse; | 267 | return iFalse; |
268 | } | 268 | } |
269 | |||
270 | iPlayer *audioPlayer_Media(const iMedia *d, iMediaId audioId) { | ||
271 | if (audioId > 0 && audioId <= size_PtrArray(&d->audio)) { | ||
272 | const iGmAudio *audio = constAt_PtrArray(&d->audio, audioId - 1); | ||
273 | return audio->player; | ||
274 | } | ||
275 | return NULL; | ||
276 | } | ||