This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AVFoundation | |
import CoreMedia | |
import CoreAudio | |
protocol AudioFilePlayerDelegate: AnyObject { | |
func didReceiveAudioSample(_ buffer: AVAudioPCMBuffer, time: AVAudioTime) | |
} | |
class AudioFilePlayer: NSObject { | |
private var audioFile: AVAudioFile? |