Yesss! Sorted It.
Massive thanks to a post over at Doozan by PeterGunn. He has solved my issues as well as his own
http://forum.doozan.com/read.php?2,2840,3071Here is what he done
Created /etc/asound.conf with the following configuration;
pcm.!default {
type plug
slave.pcm "softvol"
}
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0"
period_time 0
period_size 4096
buffer_size 131072
rate 50000
}
bindings {
0 0
1 1
}
}
pcm.dsnooper {
type dsnoop
ipc_key 1024
slave {
pcm "hw:0"
channels 2
period_time 0
period_size 4096
buffer_size 131072
rate 50000
}
bindings {
0 0
1 1
}
}
pcm.softvol {
type softvol
slave { pcm "dmixer" }
control {
name "Master"
card 0
}
}
ctl.!default {
type hw
card 0
}
ctl.softvol {
type hw
card 0
}
ctl.dmixer {
type hw
card 0
}
and edit /etc/modprobe.d/alsa-base.conf
change this line from;
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=-2
to;
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=0
Reboot, and perfect sound using
aoss ./squeezeslave localhost
Brilliant, im really pleased. Controlling it using ipeng on the iphone and it sounds pretty good.
Do you understand what you are doing? We shouldnt even need this I don't know why it doesn't work without it though...pretty lame.
I have been using an ".asoundrc" file in the root's home directory with a huge buffer, other wise the audio starts to crackle like yours....but with a huge buffer it takes forever to load up the audio before it starts playing:
root@haplug:~# cat .asoundrc
pcm.!default {
type plug
slave.pcm "ossmix"
}
pcm.ossmix {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 232072 # buffer size < 6653, but pow(x, 2)
rate 44100 # we want to play CDs only
format S16_LE # needed in alsa 1.0.10 for some reason
}
}
ctl.!default {
type hw
card 1
device 0
subdevice 0
}
I had just commented out the line in the alsa conf file:
# Keep snd-usb-audio from beeing loaded as first soundcard
#options snd-usb-audio index=-2
I'll try your settings tonight and report back.