=> b5186f399923fad2739fe46eb7058267fc219b98
[1mdiff --git a/res/about/android-version.gmi b/res/about/android-version.gmi[m [1mindex 8ddfc10d..6d7c0321 100644[m [1m--- a/res/about/android-version.gmi[m [1m+++ b/res/about/android-version.gmi[m [36m@@ -7,7 +7,7 @@[m # Release notes[m [m ## 1.13 (Beta 6)[m [31m-* Enabled audio output. WAV and Ogg Vorbis decoding is supported in this build.[m [32m+[m[32m* Enabled audio output. WAV and Ogg Vorbis decoding is supported in this build. NOTE: At the moment, playback is not supported when app is in the background, or when the screen is locked. Also, playback may not start if there is already an active player on the page.[m * Fixed showing error page for an empty server response.[m * Fixes for Spartan: query strings, input prompt default content, empty paths.[m * Added Spartan URL handler.[m [1mdiff --git a/src/audio/player.c b/src/audio/player.c[m [1mindex de430b17..67ca9521 100644[m [1m--- a/src/audio/player.c[m [1m+++ b/src/audio/player.c[m [36m@@ -21,6 +21,7 @@[m [mANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT[m SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */[m [m #include "player.h"[m [32m+[m[32m#include "defs.h"[m #include "buf.h"[m #include "lang.h"[m [m [36m@@ -620,7 +621,7 @@[m [mstatic iContentSpec contentSpec_Player_(const iPlayer *d) {[m iAssert(content.inputFormat == content.output.format ||[m (content.inputFormat == AUDIO_S24LSB && content.output.format == AUDIO_S16) ||[m (content.inputFormat == AUDIO_F64LSB && content.output.format == AUDIO_F32));[m [31m- content.output.samples = 8192;[m [32m+[m[32m content.output.samples = isAndroid_Platform() ? content.output.freq / 2 : 8192;[m return content;[m }[m [m [36m@@ -742,14 +743,14 @@[m [msize_t sourceDataSize_Player(const iPlayer *d) {[m [m static iBool setupSDLAudio_(iBool init) {[m static iBool isAudioInited_ = iFalse;[m [31m- if (init) {[m [32m+[m[32m if (init && !isAudioInited_) {[m if (SDL_InitSubSystem(SDL_INIT_AUDIO)) {[m fprintf(stderr, "[SDL] audio init failed: %s\n", SDL_GetError());[m return iFalse;[m }[m isAudioInited_ = iTrue;[m }[m [31m- else if (isAudioInited_) {[m [32m+[m[32m else if (!init && isAudioInited_ && !isAndroid_Platform()) {[m SDL_QuitSubSystem(SDL_INIT_AUDIO);[m isAudioInited_ = iFalse;[m }[m [1mdiff --git a/src/defs.h b/src/defs.h[m [1mindex 2d1ef68c..6174f6d3 100644[m [1m--- a/src/defs.h[m [1m+++ b/src/defs.h[m [36m@@ -48,6 +48,14 @@[m [miLocalDef iBool isAppleDesktop_Platform(void) {[m #endif[m }[m [m [32m+[m[32miLocalDef iBool isAndroid_Platform(void) {[m [32m+[m[32m#if defined (iPlatformAndroid)[m [32m+[m[32m return iTrue;[m [32m+[m[32m#else[m [32m+[m[32m return iFalse;[m [32m+[m[32m#endif[m [32m+[m[32m}[m [32m+[m iLocalDef iBool isMobile_Platform(void) {[m #if defined (iPlatformMobile) /* defined on iOS and Android */[m return iTrue;[m
text/gemini; charset=utf-8
This content has been proxied by September (ba2dc).