I also use ubuntu (10.04) and it came to happen that the system didn't load the
modules automatically any more. I don't know why that happened or where this
loading is prohibited. Just try to load the module manually and see if that
works. If so, you could also post this on a ubuntu mailing
Like my previous speaker already told: the modules cannot be loaded because
other modules are missing. Either you don't have modules installed at all
(which most certainly means you have a wrong kernel image running) or the
module loader cannot resolve the dependencies. To check if the module
Is there any way of finding the sample rate being output from alsa?
Yes, you can use
cat /proc/asound/card0/pcm0p/sub0/hw_params
to display you current card mode. If you have multiple cards/subdevices per
card/... just browse around in /proc/asound. To find out which pcm
substream is found in
Hello Robert,
take a look into the /proc/asound folder, there you find alsa status
informations. For example if I do a 'cat' on my PC on the file
/proc/asound/card0/pcm0p/sub0/hw_params
it returns closed if no sound is running and information about
samplerate and so on if sound is running.
Hello Fabio,
snd_pcm_writei (playback_handle, p, 131072)
writes 131072 FRAMES
p += 131072
increases the pointer by 131072 SAMPLES.
If you write
p += 131072 * number_of_channels
instead, your program should do the job.
Greets,
Torsten