From bbbbc8e18879a5495be1cff78ca78be7a44ac25b Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 21 Apr 2021 13:46:57 +0300 Subject: iOS: Background audio; MP3/AAC playback --- src/ios.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/ios.h') 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); iBool isPhone_iOS (void); void safeAreaInsets_iOS (float *left, float *top, float *right, float *bottom); int displayRefreshRate_iOS (void); + +/*----------------------------------------------------------------------------------------------*/ + +iDeclareType(AVFAudioPlayer) +iDeclareTypeConstruction(AVFAudioPlayer) + +iBool setInput_AVFAudioPlayer (iAVFAudioPlayer *, const iString *mediaType, const iBlock *audioFileData); +void play_AVFAudioPlayer (iAVFAudioPlayer *); +void stop_AVFAudioPlayer (iAVFAudioPlayer *); +void setPaused_AVFAudioPlayer (iAVFAudioPlayer *, iBool paused); +void setVolume_AVFAudioPlayer (iAVFAudioPlayer *, float volume); + +double currentTime_AVFAudioPlayer (const iAVFAudioPlayer *); +double duration_AVFAudioPlayer (const iAVFAudioPlayer *); +iBool isStarted_AVFAudioPlayer (const iAVFAudioPlayer *); +iBool isPaused_AVFAudioPlayer (const iAVFAudioPlayer *); -- cgit v1.2.3