mihai8804858 / swift-chunked-audio-player

Simple audio player for sync / async chunked audio streams
MIT License
25 stars 5 forks source link

Not Playing Audio after receiving audio chunks #8

Open dustin-kl opened 2 months ago

dustin-kl commented 2 months ago

I have updated the library to the newest commit and i started to experience that the player would not start playing the audio even though i received the audio chunks and yield them into the audio player. However the state of the audio player changes to .playing but there is no sound that comes out of the speaker. It does happen 1 in 10-20 times roughly

mihai8804858 commented 2 months ago

@dustin-kl Can you try on latest release (1.0.4)? If still reproducible, which Xcode/ iOS / device / simulator are you using? Thanks.

dustin-kl commented 2 months ago

Thanks for answering so fast! I just tested with the newest commit (1.04). Unfortunately it is still happening.

I am using XCode 15.3 and iPhone14 pro and iPhone15 pro as devices.

mihai8804858 commented 2 months ago

Thanks for answering so fast! I just tested with the newest commit (1.04). Unfortunately it is still happening.

I am using XCode 15.3 and iPhone14 pro and iPhone15 pro as devices.

Thanks, will look into this.

dustin-kl commented 2 months ago

Thanks!

I find when it happens that the player also never reaches the state .completed though the audio should be only a couple of seconds long. Maybe that helps :)

mikeg0184 commented 2 months ago

@mihai8804858 I'm seeing the same thing after testing 1.0.4.

mihai8804858 commented 2 months ago

Hi @dustin-kl, can you try on latest main branch?

dustin-kl commented 2 months ago

The problem is still there, but it's a bit different now. It doesn't happen as often, but when it does, it plays the first audio chunk and then stops. Before, it didn't even play the first audio chunk and also it happened more often. Unfortunately, it still sometimes doesn't play the whole audio.