//
//  Sound.swift
//  Micronaut
//
//  Created by Christopher Williams on 4/7/16.
//  Copyright © 2016 Christopher Williams. All rights reserved.
//
//  Handles playing and stopping soundtracks.

import SpriteKit

class Sound {
    static private var scene:SKScene?
    
    class func initialize(scene: SKScene) {
        self.scene = scene
        
        play("Monster-Street-Fighters.mp3", loop: true)
    }
    
    class func play(filename: String, loop: Bool) {
        if loop {
            scene!.runAction(SKAction.repeatActionForever(SKAction.playSoundFileNamed(filename, waitForCompletion: true)))
        } else {
            scene!.runAction(SKAction.playSoundFileNamed(filename, waitForCompletion: true))
        }
    }
}
//
//  Sound.swift
//  Micronaut
//
//  Created by Christopher Williams on 4/7/16.
//  Copyright © 2016 Christopher Williams. All rights reserved.
//
//  Handles playing and stopping soundtracks.

import SpriteKit

class Sound {
    static private var scene:SKScene?
    
    class func initialize(scene: SKScene) {
        self.scene = scene
        
        play("Monster-Street-Fighters.mp3", loop: true)
    }
    
    class func play(filename: String, loop: Bool) {
//        if loop {
//            scene!.runAction(SKAction.repeatActionForever(SKAction.playSoundFileNamed(filename, waitForCompletion: true)))
//        } else {
//            scene!.runAction(SKAction.playSoundFileNamed(filename, waitForCompletion: true))
//        }
    }
}
Revert "reenabled sound and incremented build number"
Revert "reenabled sound and incremented build number"

This reverts commit c1efa1efcbbdf66a78ad9accd2bbcaa2798ee70f.
