Giter Club home page Giter Club logo

Comments (8)

nfranke avatar nfranke commented on July 19, 2024

I have the same problem. It appears that it receives a kCFStreamEventEndEncountered, but then just stops the stream instead of letting it finish playing. In addition, the progress field doesn't update after it read the last buffer. Seems the entire state model is lacking.

from audiostreamer.

mayoneez avatar mayoneez commented on July 19, 2024

I have the same problem. Ideas, anyone?

UPDATE: mine was a different problem, not related to this...

from audiostreamer.

cranberryred avatar cranberryred commented on July 19, 2024

sorry to pull up a dead list....
But did you guys get a chance to solve this? I'm stuck with the exact same issue....
Any guidance on how to stream short MP3 files??

from audiostreamer.

philchass avatar philchass commented on July 19, 2024

Experiencing the same issue but not only with a short MP3.
The streamer progress doesn't update after a period of time, the streamer falls in AS_STOPPING_EOF.

from audiostreamer.

holin avatar holin commented on July 19, 2024

I have the same problem.

from audiostreamer.

abless avatar abless commented on July 19, 2024

This seems to be a race condition. To fix this, I did an ugly hack (not a solution):

After line 1441 (after calling AudioQueueStart), I inserted a [NSThread sleepForTimeInterval:0.5]. It seems to solve the biggest problems although there are still issues with wrong state. I hope this will get properly fixed at some point. I am not familiar with AudioQueues, so I can only offer this quick-fix instead of a real solution.

from audiostreamer.

kexoth avatar kexoth commented on July 19, 2024

I encountered the same issue, for small mp3's I got "AudioQueue changed state in unexpected way." & I'm too unfamiliar with AudioQueues. I went through the code, changed kNumAQBufs to 8 & kAQDefaultBufSize to 512 & now the AudioStreamer works well with small files too.

from audiostreamer.

alanchen1988 avatar alanchen1988 commented on July 19, 2024

" changed kNumAQBufs to 8 & kAQDefaultBufSize to 512 " help me solve the issue.Thank you so much.

from audiostreamer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.