Simple alsa sequencer question
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · Ryan Pavlik
Quoted 4 lines · Clemens Ladisch
The event timestamps are set yo the current time of the queue. Your queue isn't running, so its current time is zero.
Call
snd_seq_start_queue(seq, queue, NULL)(andsnd_seq_drain_output).Hmm, nope... I've tried this in various combinations along with tempo-setting and position-setting events sent to the queue, with no avail. I'm still getting 0 0.
Try:
snd_seq_open(&seq, "default", SND_SEQ_OPEN_DUPLEX, 0);
Opening with SND_SEQ_OPEN_INPUT, any call to snd_seq_start_queue will return a -22 error code.
Regards,
Pedro
Signature · 10 lines
ALSA Library Bindings for Pascal http://alsapas.alturl.com ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
Quoted 11 lines · On Tue, 28 Oct 2003 20:20:40 +0100 Pedro Lopez-Cabanillas…
Quoted 9 lines · Ryan Pavlik
Quoted 4 lines · Clemens Ladisch
The event timestamps are set yo the current time of the queue. Your queue isn't running, so its current time is zero.
Call
snd_seq_start_queue(seq, queue, NULL)(andsnd_seq_drain_output).Hmm, nope... I've tried this in various combinations along with tempo-setting and position-setting events sent to the queue, with no avail. I'm still getting 0 0.
Quoted 5 lines
Try:
snd_seq_open(&seq, "default", SND_SEQ_OPEN_DUPLEX, 0);Opening with
SND_SEQ_OPEN_INPUT, any call tosnd_seq_start_queuewill return a -22 error code.
YES! Thank you! :-) Now, why didn't I try that. Both of these combined did the trick.
Anyhow, thanks a ton, solved a very nagging problem. My ruby-alsa module should soon have a useful sequencer. ;-)
ttyl,
Signature · 10 lines
Ryan Pavlik <[email protected]> "Maybe it's the unfocused, blind, murderous rage." - 8BT ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/