aconstlink / natus

[Discontinued] Software Framework for Audio/Visual/Interactive Real-Time Applications
https://aconstlink.de
MIT License
0 stars 0 forks source link

OpenAL Looping with silence #279

Closed aconstlink closed 3 years ago

aconstlink commented 3 years ago

If looping is turned on, there is a longer silence in the audio. Somehow it feels double the track length. Maybe it is an issue with the mono/stereo channels.

aconstlink commented 3 years ago

As a reminder, the size in bytes of allocated OpenAL buffer is too big. The natus audio buffer stores in float, but the OpenAL backend uses 16 bit values, i.e. short. The data is allocated with the sib of the natus buffer which basically doubles it. sizeof(float) = 2*sizeof(short)

This needs to be done tomorrow. :rocket: