> I have to use at the moment: 
> 
> static inline int snd_pcm_gethwpos(snd_pcm_t *pcm) { 
>     snd_pcm_sframes_t ret = snd_pcm_avail_update(pcm); 
>     ret += snd_pcm_commited; 
>     if(ret<0) { 
>       ret = ((unsigned long) 
>               ret)%buffer_size; 
>     } 
>     return snd_pcm_avail_update(pcm)%buffer_size; 

BUG. I should have used:

        return ret;

But anyway, what do you think about snd_pcm_avail_update returning negative
values?

Best regards,
--
Tomasz Motylewski



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Two, two, TWO treats in one.
http://thinkgeek.com/sf
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to