From fa94a8743211fb8c2dc9171ad6672095175ef405 Mon Sep 17 00:00:00 2001 From: Jake Manning Date: Tue, 11 Jul 2017 18:07:46 -0700 Subject: [PATCH] Update SoundPlayer.swift MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue #217 details this problem. It isn’t possible to use SoundPlayer unless these are public --- Spring/SoundPlayer.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Spring/SoundPlayer.swift b/Spring/SoundPlayer.swift index 122ba42..d2451d9 100644 --- a/Spring/SoundPlayer.swift +++ b/Spring/SoundPlayer.swift @@ -23,7 +23,7 @@ import UIKit import AudioToolbox -struct SoundPlayer { +public struct SoundPlayer { static var filename : String? static var enabled : Bool = true @@ -32,7 +32,7 @@ struct SoundPlayer { static var cache = [URL:SystemSoundID]() } - static func playSound(soundFile: String) { + public static func playSound(soundFile: String) { if !enabled { return