Re: [Alsa-user] No sound, no /proc/asound/

2011-02-11 Thread Torsten Schenk
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

Re: [Alsa-user] No sound, no /proc/asound/

2011-02-12 Thread Torsten Schenk
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

Re: [Alsa-user] Way to monitor sample rate? Alsaequal.

2011-11-05 Thread Torsten Schenk
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

Re: [Alsa-user] how to detect activity or non activity on soundcard

2012-03-23 Thread Torsten Schenk
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.

Re: [Alsa-user] Playing audio with ALSA api(newbie)

2012-04-11 Thread Torsten Schenk
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