I have an application that sends voice packets of PCM data from one node to another. The program also plays a wav file at the startup. The wav file is heard but none of my audio. I added the following to my asound.conf file:
pcm.playmix {
type softvol
slave {
pcm "hw:0,0"
}
control.name "SpeakerVolume"
control.card 0
}
pcm.writeFile {
type file
slave {
pcm playmix # Now write to the actual sound card
}
file "/tmp/output.raw"
format "raw"
}
pcm.dsp0 {
type plug
slave.pcm "writeFile"
}
We I look at the output.raw file using Audacity both the startup wav file is present as well as the PCM audio that has come from the LAN. However I don't hear any audio on the receiving computer's speaker that is the LAN traffic. I am currently stuck as to what to do next. Does the output.raw file get saved whilst the data is being transferred to the kernel to play on the device? If I use aplay, then whatever wav file I select is played. The only audio I am missing is the PCM from the other end of my LAN.
Any suggestions would be most appreciated.