All of lore.kernel.org
 help / color / mirror / Atom feed
* pointer callback question
@ 2009-02-12 17:50 Tim Blechmann
  2009-02-12 17:54 ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: Tim Blechmann @ 2009-02-12 17:50 UTC (permalink / raw)
  To: alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 839 bytes --]

hi all,

one question about the pointer callback.

the docs say:
>  This callback is called when the PCM middle layer inquires the current
>  hardware position on the buffer. The position must be returned in
frames,
>  ranging from 0 to buffer_size - 1.

i am using a ringbuffer to communicate with my audio device. but when
the position is reset to 0, alsa requests to stop the stream
(SNDRV_PCM_TRIGGER_STOP).

the brief log is (4 periods of 64 frames):
stream_pointer at 64
stream_pointer at 128
stream_pointer at 192
stream_pointer at 256
stream_pointer at 0

after returning 0, a stop is requested.

am i missing something?
thanks, tim

-- 
tim@klingt.org
http://tim.klingt.org

Contrary to general belief, an artist is never ahead of his time but
most people are far behind theirs.
  Edgar Varèse


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-02-28 12:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-12 17:50 pointer callback question Tim Blechmann
2009-02-12 17:54 ` Takashi Iwai
2009-02-12 17:55   ` Tim Blechmann
2009-02-12 17:58     ` Takashi Iwai
2009-02-12 18:04       ` Tim Blechmann
2009-02-13  6:26         ` Takashi Iwai
2009-02-26 14:44       ` Tim Blechmann
2009-02-28 12:48         ` Tim Blechmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.