我花了一些時間試圖自己調試它,但我似乎無法使AudioFileReadPacketData正確讀取傳入的數據。這基於直接從Apple AudioQueueServices Guide。 class SVNPlayer: SVNPlayback {
var queue: AudioQueueRef?
var audioFormat: AudioStreamBasicDescrip
import Foundation
import AudioToolbox
class AudioPlay {
//setting buffer num
static let knumberBuffers = 3
var aqData = AQPlayerState.init()
//A custom structure for a playback