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
---
Hello again,
a simple bash script that you can run with
start-stop-daemon --start --background --exec /path/to/file
will do the job. Just adjust the value "timeout_sec" (time in seconds
after function timeout() will be called), "freq_sec" (time in seconds
of the pause between two checks) and
"su
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.
Gr
> 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
Hi Rob,
>Otherwise, could anyone suggest any other USB sound cards which might be
>suitable?
>
As it seems to me, the TerraTec DMX 6Fire USB is capable of handling AC3 and
DTS passthrough. The card is not the cheapest out there but it has a lot of
features. It also has both connector types,
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 di
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 list