Skip to content

calling play() is slow #32

Description

@stephanschulz

I have 700 audio files that I manually loop by checking their playhead position against their duration.
In previous versions on an older system this worked fine.
But on OSX 10.12 with OF 0.10. this slowed my app down to 1fps.

So I made a custom resetToStart() function that basically does the same as play() but does not all of the priming.

https://github.com/antimodular/ofxAudioUnit/blob/b09d380ce3396c38aa700e4d5ca2ef7c112bc15b/src/ofxAudioUnitFilePlayer.cpp#L267-L293

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions