From 19a8c797707cd962fb88763ac9f009c91806b993 Mon Sep 17 00:00:00 2001 From: "A. Vatsaev" Date: Mon, 5 Dec 2016 23:24:48 +0100 Subject: [PATCH] cleanup --- touchbar_nyancat/NyanCatViewController.swift | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/touchbar_nyancat/NyanCatViewController.swift b/touchbar_nyancat/NyanCatViewController.swift index 666a144..a2ec44c 100644 --- a/touchbar_nyancat/NyanCatViewController.swift +++ b/touchbar_nyancat/NyanCatViewController.swift @@ -63,15 +63,15 @@ class NyanCatViewController: NSViewController , NSTouchBarDelegate{ sound_btn_image_off = NSImage(named: "ic_volume_off_3x.png") - let nyan_music = URL(fileURLWithPath: Bundle.main.path(forResource: "nyan_music", ofType: "mp3")!) - - do { - - try audio_player = AVAudioPlayer(contentsOf: nyan_music) - audio_player?.numberOfLoops = -1 - audio_player?.prepareToPlay() - - }catch{} +// let nyan_music = URL(fileURLWithPath: Bundle.main.path(forResource: "nyan_music", ofType: "mp3")!) +// +// do { +// +// try audio_player = AVAudioPlayer(contentsOf: nyan_music) +// audio_player?.numberOfLoops = -1 +// audio_player?.prepareToPlay() +// +// }catch{} //sound = true