
Hello,
I am trying to write an alsa sequencer. So I read as I can some of your tutorials, and I don't really understand what I am doing wrong, please help me.
I want to send scheduled event with the queuing system, but with RTC timer the queue doesn't start, and with the other timer the queue start but no events are sent.
I have joined to this email a small code, with the same kind of functions I am using, and some /proc/asound/seq/* outputs.
Regards, Gilbux
/proc/asound/seq/* before starting the queue : Client info cur clients : 2 peak clients : 3 max clients : 192
Client 0 : "System" [Kernel] Port 0 : "Timer" (Rwe-) Port 1 : "Announce" (R-e-) Client 128 : "TestQSchedEv" [User] Port 0 : "OutputPort" (R-e-) Output pool : Pool size : 500 Cells in use : 16 Peak cells in use : 16 Alloc success : 16 Alloc failures : 0 queue 0: [TQSE_Queue] owned by client : 128 lock status : Locked queued time events : 0 queued tick events : 16 timer state : Stopped timer PPQ : 192 current tempo : 500000 current BPM : 120 current time : 0.000000000 s current tick : 0
Timer for queue 0 : RTC timer Period time : 0.000000000 Skew : 65536 / 65536
-----
/proc/asound/seq/* after starting the queue : Client info cur clients : 2 peak clients : 3 max clients : 192
Client 0 : "System" [Kernel] Port 0 : "Timer" (Rwe-) Port 1 : "Announce" (R-e-) Client 128 : "TestQSchedEv" [User] Port 0 : "OutputPort" (R-e-) Output pool : Pool size : 500 Cells in use : 0 Peak cells in use : 16 Alloc success : 16 Alloc failures : 0 queue 0: [TQSE_Queue] owned by client : 128 lock status : Locked queued time events : 0 queued tick events : 0 timer state : Running timer PPQ : 192 current tempo : 500000 current BPM : 120 current time : 0.000000000 s current tick : 0
Timer for queue 0 : RTC timer Period time : 0.000976562 Skew : 65536 / 65536