Hi,

I have been experimenting with having a stream from my desktop
computer, so that I can tune in on my PDA while I am cooking in the
kitchen for example.

I have mpd installed nicely. The icecast output module for mpd has
proven too resource intensive for my 1.6gHz (which shocked me), so I
am going to try using ices2 to directly grab what the sound card is
playing.

Here is the input module section of my ices2.xml:
<input>
  <module>sun</module>
  <param name="device">/dev/audio</param>
  <param name="rate">44100</param>
  <param name="channels">2</param>
  <param name="metadata">0</param>
  <!--<param name="metadatafilename">/home/ices/metadata</param>-->
</input>

So, mpd is playing through the soundcard, the icecast server is up and
waiting for sources.

# ices2 /etc/ices2.xml
[2007-06-20  14:07:46] INFO ices-core/main IceS 2.0.1 started...
[2007-06-20  14:07:46] EROR input-sun/sun_open_module Failed to open
audio device /dev/audio: Device busy
[2007-06-20  14:07:46] EROR input/input_loop Couldn't initialise input
module "sun"
[2007-06-20  14:07:46] INFO ices-core/main Shutdown complete

And ktrace reveals this snippet:
23249 ices2    CALL  open(0x885cc770,0,0)
23249 ices2    NAMI  "/dev/audio"
23249 ices2    RET   open -1 errno 16 Device busy

Surely the device should be busy if I am to take data from it? Or have
I misunderstood?

I have also tried /dev/audio0,sound,sound0 all with  no success.

Has anyone else had this working?

--
Best Regards

Edd

---------------------------------------------------
http://students.dec.bournemouth.ac.uk/ebarrett

Reply via email to