Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArrayPlayer should wait for data to be loaded before starting timer #10

Closed
jiahao opened this issue Jan 26, 2014 · 2 comments
Closed

ArrayPlayer should wait for data to be loaded before starting timer #10

jiahao opened this issue Jan 26, 2014 · 2 comments

Comments

@jiahao
Copy link

jiahao commented Jan 26, 2014

If you play a long array, the first part of the waveform is not played. It seems that the internal timer starts immediately when play is called but audio doesn't begin playback until the entire waveform is sent to ArrayPlayer. When the playback begins, it jumps to the current time rather than starting from zero, with the effect that the time spent waiting for ArrayPlayer to initialize is skipped over in playback.

@ssfrr
Copy link
Owner

ssfrr commented Jan 27, 2014

Hmm, there isn't any separate timer, the frames of audio are delivered to PortAudio as requested. It seems that maybe PortAudio is throwing away the first few frames of audio or something. I'll look into it shortly.

-s

@ssfrr
Copy link
Owner

ssfrr commented Sep 11, 2014

As far as I can tell this is resolved with the recent changes to the portaudio wrapper. I just tested with an array that played a major scale up and it sounded good to me. Let me know if you have an example that makes the issue more obvious.

@ssfrr ssfrr closed this as completed Sep 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants