muse and /dev/rtc
(added alsa-devel to cc)
Quoted 7 lines · Alfons Adriaensen
Which leads to the following question I've been asking myself for some time:
the ALSA sequencer API seems to allow *timestamped* events - you put such an event in a queue and it will appear at the other end at the right moment. If this is true, and if ALSA has an high precision timer available to implement it, why should apps like MusE bother to do the fine timing themselves ?
Yes, my thoughts exactly. You don't even have to use the ALSA sequencer API, you can use the ALSA timer API directly. You get multiple timer sources (system, RTC, sound card). It should also be more portable. For example if your sound card's timer is supported by your ALSA driver like emu10k1 and ymfpci then I think you can use this timer to give better sync with the hardware.
ALSA devs, is this correct?
Lee
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
At Mon, 22 Nov 2004 13:21:07 -0500,
Quoted 12 lines · Lee Revell
(added alsa-devel to cc)
Quoted 7 lines · Alfons Adriaensen
Which leads to the following question I've been asking myself for some time:
the ALSA sequencer API seems to allow *timestamped* events - you put such an event in a queue and it will appear at the other end at the right moment. If this is true, and if ALSA has an high precision timer available to implement it, why should apps like MusE bother to do the fine timing themselves ?
Quoted 8 lines
Yes, my thoughts exactly. You don't even have to use the ALSA sequencer API, you can use the ALSA timer API directly. You get multiple timer sources (system, RTC, sound card). It should also be more portable. For example if your sound card's timer is supported by your ALSA driver like emu10k1 and ymfpci then I think you can use this timer to give better sync with the hardware.
ALSA devs, is this correct?
Yes, I agree that ALSA timer API would be useful for such a case. The app can reject to run or do some workaround if the queried timer resolution is worse than requirements.
Well, my guess for the next reaction is "the lack of documentation" ;)
Takashi
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 3 lines · Lee Revell
Yes, my thoughts exactly. You don't even have to use the ALSA sequencer API, you can use the ALSA timer API directly. You get multiple timer sources (system, RTC, sound card). It should also be more portable.
Yes, but using the sequencer's timing should require less process swaps.
Signature · 13 lines
FA ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
Quoted 5 lines · Takashi Iwai
Yes, I agree that ALSA timer API would be useful for such a case. The app can reject to run or do some workaround if the queried timer resolution is worse than requirements.
Well, my guess for the next reaction is "the lack of documentation" ;)
I think the only issue is that adding timer support to a driver is not documented. I did not even know ALSA had a timer API until it was pointed out to me on the list, as the driver guide was my main reference. Adding a chapter to the guide would ensure that new drivers get timer support.
Lee
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/