mirror of
https://github.com/avatsaev/touchbar_nyancat
synced 2024-11-21 18:53:06 +00:00
cleanup
This commit is contained in:
parent
1678ee140a
commit
19a8c79770
1 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue