Giter Club home page Giter Club logo

Comments (7)

philchass avatar philchass commented on July 19, 2024

I used the iPhone demo app and took a bunch of sounds from http://sounddogs.com/results.asp?Type=3&CategoryID=3018&SubcategoryID=1

Result: all the sounds are not correctly played. Progress stops shortly +/- randomly.

I'd like to use this class in my project but unfortunately this issue is to huge!

from audiostreamer.

pil-zz avatar pil-zz commented on July 19, 2024

My MP3 file duration is 12.7 sec, but progress is stop at 9.5, but sound is hearing.

from audiostreamer.

freak4pc avatar freak4pc commented on July 19, 2024

I get the same bug, the "progress" stops 3 seconds before the actual song ends (for some reason)...

from audiostreamer.

tehillim avatar tehillim commented on July 19, 2024

I get the same bug.. watching this.

from audiostreamer.

mikefrederick avatar mikefrederick commented on July 19, 2024

Same here. There seems to be a partial but incomplete fix available here: http://stackoverflow.com/questions/7952318/audiostreamer-doesnt-show-the-correct-play-time.

from audiostreamer.

azone avatar azone commented on July 19, 2024

CHANGE:

        if (sampleRate > 0 && ![self isFinishing])
        {
            if (state != AS_PLAYING && state != AS_PAUSED && state != AS_BUFFERING)
            {
                return lastProgress;
            }
        ...
        }

TO:

        if (sampleRate > 0 && (state == AS_STOPPING || ![self isFinishing]))
        {
            if (state != AS_PLAYING && state != AS_PAUSED && state != AS_BUFFERING && state != AS_STOPPING)
            {
                return lastProgress;
            }
         ...
        }

in progress method

from audiostreamer.

mattgallagher avatar mattgallagher commented on July 19, 2024

I've added the change as suggested by azone. I haven't tested thoroughly but it shouldn't cause any problems. I'll close this when I've tested more thoroughly.

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.