diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-21 13:46:57 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-21 13:46:57 +0300 |
commit | bbbbc8e18879a5495be1cff78ca78be7a44ac25b (patch) | |
tree | cf24ab2e663e6a70250346328825f9c4a4eff45a /src/ios.h | |
parent | 8b12e6f56fddc4a10e74591ebf6d9af38a9f0bb5 (diff) |
iOS: Background audio; MP3/AAC playback
Diffstat (limited to 'src/ios.h')
-rw-r--r-- | src/ios.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -39,3 +39,19 @@ void exportDownloadedFile_iOS(const iString *path); | |||
39 | iBool isPhone_iOS (void); | 39 | iBool isPhone_iOS (void); |
40 | void safeAreaInsets_iOS (float *left, float *top, float *right, float *bottom); | 40 | void safeAreaInsets_iOS (float *left, float *top, float *right, float *bottom); |
41 | int displayRefreshRate_iOS (void); | 41 | int displayRefreshRate_iOS (void); |
42 | |||
43 | /*----------------------------------------------------------------------------------------------*/ | ||
44 | |||
45 | iDeclareType(AVFAudioPlayer) | ||
46 | iDeclareTypeConstruction(AVFAudioPlayer) | ||
47 | |||
48 | iBool setInput_AVFAudioPlayer (iAVFAudioPlayer *, const iString *mediaType, const iBlock *audioFileData); | ||
49 | void play_AVFAudioPlayer (iAVFAudioPlayer *); | ||
50 | void stop_AVFAudioPlayer (iAVFAudioPlayer *); | ||
51 | void setPaused_AVFAudioPlayer (iAVFAudioPlayer *, iBool paused); | ||
52 | void setVolume_AVFAudioPlayer (iAVFAudioPlayer *, float volume); | ||
53 | |||
54 | double currentTime_AVFAudioPlayer (const iAVFAudioPlayer *); | ||
55 | double duration_AVFAudioPlayer (const iAVFAudioPlayer *); | ||
56 | iBool isStarted_AVFAudioPlayer (const iAVFAudioPlayer *); | ||
57 | iBool isPaused_AVFAudioPlayer (const iAVFAudioPlayer *); | ||