summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-06-11 14:24:48 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-06-11 14:24:48 +0300
commita1fdf46087de8e1719ec80ac1ca145dacfc8e640 (patch)
tree9abfbe628947a02f54dcf68385b3d66ff4470d42 /src/app.c
parent31f7eafd9c6897cdf0ee7d6eeaade9dcc65cb006 (diff)
iOS: Audio remote control, Now Playing info
Update the basic Now Playing info about the currently playing music, and respond to remote control commands. Seems to work with MP3 but not other audio formats, probably because those are played via custom decoders. There must be some API for updating the playback status manually.
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/app.c b/src/app.c
index 73908a09..c2bd3da0 100644
--- a/src/app.c
+++ b/src/app.c
@@ -1089,6 +1089,13 @@ void processEvents_App(enum iAppEventMode eventMode) {
1089 postRefresh_App(); 1089 postRefresh_App();
1090 break; 1090 break;
1091 case SDL_APP_WILLENTERBACKGROUND: 1091 case SDL_APP_WILLENTERBACKGROUND:
1092#if defined (iPlatformAppleMobile)
1093 updateNowPlayingInfo_iOS();
1094#endif
1095 setFreezeDraw_Window(d->window, iTrue);
1096 savePrefs_App_(d);
1097 saveState_App_(d);
1098 break;
1092 case SDL_APP_TERMINATING: 1099 case SDL_APP_TERMINATING:
1093 setFreezeDraw_Window(d->window, iTrue); 1100 setFreezeDraw_Window(d->window, iTrue);
1094 savePrefs_App_(d); 1101 savePrefs_App_(d);