19 Jun
2015
19 Jun
'15
10:01 a.m.
Azizul Hakim wrote:
So when a audio playback starts I initialize the buffer pointer to "0" in the *.prepare* function.
This is correct.
https://gist.github.com/azizulhakim/d24a36ef753f9a1536fa https://gist.github.com/azizulhakim/b15b002f74e77f88cd5a
This is not; the code confuses bytes and frames.
When in doubt, give _all_ variables a "_bytes" or "_frames" suffix, and check that _every_ access uses the correct units.
Regards, Clemens