PCM Params
A message that is not in the archive (sent off-list or not yet received): [email protected]
ok paul i had another look at the driver playback/capture tutorials. I have one question.Do applications initialize and use a pcm_handle of the alsa driver when they begin interaction with it?Surely not....
I thought that the driver would work totally independently of my VoIP and this is why I asked the question is it possible to change driver parameters directly.
Brian.
Quoted 1 line · Paul Davis
Im running OpenH323 a voice over ip application.What I
were you asking about this on alsa-devel a couple of weeks ago?
Quoted 9 lines
have found out from using it is that the alsa driver always puts 32 msecs(256 bytes) of data into the sender buffer, or takes the same amount from the receiver buffer.
32 msecs is driver default if it's not set by the application? I thought if i change the relevant default params in alsa-driver/alsa-kernel/ and recompile, it wud do the trick.
Quoted 3 lines
...Instead i should include this function call to set the driver period..snd_pcm_hw_params_set_period_size() within my OpenH323 app with relevant header files???
yes, although i am not sure you understand enough about how this all works. and i am pretty sure i don't have time to explain. did you read either of the tutorials on the ALSA site for programmers?
---------------------------------
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now
Quoted 3 lines
ok paul i had another look at the driver playback/capture tutorials. I have on e question.Do applications initialize and use a
pcm_handleof the alsa driver when they begin interaction with it?Surely not....
surely yes.
ALSA isn't structured the way windows seems to concieve of audio. We don't have separate tools to configure the driver, and then have applications just use it. Each application configures the driver to the setup that it requires. It might leave many things to their default settings, but some basic configuration is nearly always done.
Quoted 3 lines
I thought that the driver would work totally independently of my VoIP and this is why I asked the question is it possible to change driver parameters direct ly.
The application changes them. There are some h/w parameters that get changed by "utilities", but not the basic stuff like h/w buffer size, interrupt interval (period size), sample rates and so on.
If you want a different model, in which no h/w configuration is done and you are presented with a highly abstract audio API, JACK is worth looking at.
--p
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click