tanhakabir / SwiftAudioPlayer

Streaming and realtime audio manipulation with AVAudioEngine
https://medium.com/chameleon-podcast/creating-an-advanced-streaming-audio-engine-for-ios-9fbc7aef4115
MIT License
544 stars 107 forks source link

AudioQueue is always empty #152

Closed AndreyPoznyak closed 2 years ago

AndreyPoznyak commented 2 years ago

public var audioQueued: [SAAudioQueueItem] - this one appears to be empty since it is not proxy-ed from presenter - in presenter it is up to date

twjazzhuang commented 2 years ago

SAPlayer.swift
185: it should get presenter.audioQueue

public var audioQueued: [SAAudioQueueItem] {
    get {
        return presenter.audioQueue
    }
    set {
      presenter.audioQueue = newValue
    }
}

@tanhakabir can u help it? thanks

tanhakabir commented 2 years ago

Yep! Externally you should be working with the audio queue saved in the presenter. Is there an issue with it?

AndreyPoznyak commented 2 years ago

@tanhakabir of course, presenter is not public. In order to get access to the queue the code should be adjusted as @twjazzhuang suggested

tanhakabir commented 2 years ago

Fixed and published from https://github.com/tanhakabir/SwiftAudioPlayer/pull/149 will be version 7.4.0