Here's the story. I have two sound cards, both Intel HDA.
Using VLC, I can play 44.1kHz sample rate material over the analogue card, card 1, and 48kHz sample pate material over my video card, card 0.
So all the bits work.
I need to get sample rate conversion working so I only need to use HDMI
Further, there is a long time bug in in the digital output driver, that chops off the first few seconds of output when the stream is opened. The fix for that is to use dmix and play silence all the time.
I have a wee ditty in /etc/local.d that does that.
startpage.com is not being my friend. I've found lots of things that don't work.
My /home and /etc go back to 2003, maybe slightly earlier, so I've cleared out all the alsa related guff that I can see and don't have an /etc/asound.conf or a ~/.asoundrc
Pulseaudio is not an option.
I know what I want and that it involves dmix and sample rate conversion but what to put into /etc/asound.conf ?
-- edit --
Code: Select all
$ cat /etc/local.d/play_silence.start
#!/bin/bash
# Play silence forever so we don't miss the first few sec of sound.
aplay -c2 -r48000 -fS16_LE < /dev/zero &
# The kernel option does not seem to fix itCode: Select all
$ sudo /etc/local.d/play_silence.start
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.8-r1/work/alsa-lib-1.2.8/src/pcm/pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slaveSome progress ... maybe ..
Code: Select all
$ cat .asoundrc
pcm.dmixer {
type dmix
ipc_key 1234
ipc_key_add_uid true # Needed ?
ipc_perm 0666
slave {
format S16_LE
pcm "hw:0,3"
period_time 0
period_size 1024
buffer_size 4096
rate 48000
}
bindings {
0 0
1 1
}
}
# Whatever ctl magic thing
ctl.dmixer {
type hw
card 0
}
pcm.!default {
type plug
slave.pcm "dmixer"
}




