[alsa-devel] Audio Driver Works In Ubuntu but Crash in	Debian	After 2nd Run
    Clemens Ladisch 
    clemens at ladisch.de
       
    Fri Jun 19 10:01:02 CEST 2015
    
    
  
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
    
    
More information about the Alsa-devel
mailing list