You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
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.The text was updated successfully, but these errors were encountered: