Skip to content

Instantly share code, notes, and snippets.

import Cocoa
import AVFoundation
import CoreAudio
// The Weak struct is the weak wrapper
struct Weak<T: AnyObject> {
weak var object: T?
}
// TestObject represents the AudioPlayer class