[alsa-devel] pcm_oss: Can period_bytes - buffer_used be less than 0?
4 Mar
2009
4 Mar
'09
4:32 p.m.
vi sound/core/oss/pcm_oss.c +1572 (in linus' git tree) and note:
static int snd_pcm_oss_sync(struct snd_pcm_oss_file *pcm_oss_file) { ... size_t size; ... :1608 size = runtime->oss.period_bytes - runtime->oss.period_ptr;
can this period_bytes - buffer_used become less than 0?
Roel
5 Mar
5 Mar
8:57 a.m.
New subject: [alsa-devel] pcm_oss: Can period_bytes - buffer_used be less than 0?
At Wed, 04 Mar 2009 16:32:23 +0100, Roel Kluin wrote:
vi sound/core/oss/pcm_oss.c +1572 (in linus' git tree) and note:
static int snd_pcm_oss_sync(struct snd_pcm_oss_file *pcm_oss_file) { ... size_t size; ... :1608 size = runtime->oss.period_bytes - runtime->oss.period_ptr;
can this period_bytes - buffer_used become less than 0?
You mean "period_bytes - period_ptr"? Then no, period_ptr is always smaller than period_bytes.
Takashi
5771
Age (days ago)
5772
Last active (days ago)
1 comments
2 participants
participants (2)
-
Roel Kluin
-
Takashi Iwai