summaryrefslogtreecommitdiff
path: root/src/ios.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-21 13:46:57 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-21 13:46:57 +0300
commitbbbbc8e18879a5495be1cff78ca78be7a44ac25b (patch)
treecf24ab2e663e6a70250346328825f9c4a4eff45a /src/ios.h
parent8b12e6f56fddc4a10e74591ebf6d9af38a9f0bb5 (diff)
iOS: Background audio; MP3/AAC playback
Diffstat (limited to 'src/ios.h')
-rw-r--r--src/ios.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ios.h b/src/ios.h
index ba462834..578c85fe 100644
--- a/src/ios.h
+++ b/src/ios.h
@@ -39,3 +39,19 @@ void exportDownloadedFile_iOS(const iString *path);
39iBool isPhone_iOS (void); 39iBool isPhone_iOS (void);
40void safeAreaInsets_iOS (float *left, float *top, float *right, float *bottom); 40void safeAreaInsets_iOS (float *left, float *top, float *right, float *bottom);
41int displayRefreshRate_iOS (void); 41int displayRefreshRate_iOS (void);
42
43/*----------------------------------------------------------------------------------------------*/
44
45iDeclareType(AVFAudioPlayer)
46iDeclareTypeConstruction(AVFAudioPlayer)
47
48iBool setInput_AVFAudioPlayer (iAVFAudioPlayer *, const iString *mediaType, const iBlock *audioFileData);
49void play_AVFAudioPlayer (iAVFAudioPlayer *);
50void stop_AVFAudioPlayer (iAVFAudioPlayer *);
51void setPaused_AVFAudioPlayer (iAVFAudioPlayer *, iBool paused);
52void setVolume_AVFAudioPlayer (iAVFAudioPlayer *, float volume);
53
54double currentTime_AVFAudioPlayer (const iAVFAudioPlayer *);
55double duration_AVFAudioPlayer (const iAVFAudioPlayer *);
56iBool isStarted_AVFAudioPlayer (const iAVFAudioPlayer *);
57iBool isPaused_AVFAudioPlayer (const iAVFAudioPlayer *);