From 2d9e6112ab8e5308b2d4a27c6fdd83ff0fdfd8ad Mon Sep 17 00:00:00 2001 From: kichikuou Date: Sun, 16 Apr 2017 00:23:42 +0900 Subject: [PATCH] Support mute in iOS --- shell/cdda.ts | 35 ++++++++++++++++++++++++++++++++++- shell/volume.ts | 4 ++++ 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/shell/cdda.ts b/shell/cdda.ts index 7321da0..7040776 100644 --- a/shell/cdda.ts +++ b/shell/cdda.ts @@ -6,19 +6,34 @@ namespace xsystem35 { private audio = $('audio'); private blobs: Blob[]; private currentTrack: number; + private isVolumeSupported: boolean; + private unmute: () => void; // Non-null if emulating mute by pause waiting: boolean; constructor(private imageLoader: ImageLoader, volumeControl: VolumeControl) { + // Volume control of