         player.play()
     }
     
+    internal func stop() {
+        player.stop()
+    }
+    
     required public init?(coder: NSCoder) {
         fatalError("init(coder:) has not been implemented")
     }

        playButton.frame.origin.y = topTitle.frame.origin.y - 2 * CGFloat(sliderHeight)
        view.addSubview(playButton)
        
        self.contentView!.addSubview(view)
        self.makeKeyAndOrderFront(nil)
    }

    let numberOfComponents = 1
    
    public let playButton: NSButton
    public let stopButton: NSButton

    var player: AKAudioPlayer
    
    public init(_ control: AKAudioPlayer) {
        player = control
        let sliderWidth = windowWidth - 2 * padding
        playButton      = NSButton(frame: NSRect(x: padding, y: 0, width: sliderWidth, height: sliderHeight))
        
        stopButton      = NSButton(frame: NSRect(x: padding, y: 0, width: sliderWidth, height: sliderHeight))
        
        
        let titleHeightApproximation = 50
        let windowHeight = padding * 2 + titleHeightApproximation + numberOfComponents * 3 * sliderHeight
