Results 1 to 15 of 47

Thread: [HowTo] Streaming audio from Winamp/XMMS/etc.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Post [HowTo] Streaming audio from Winamp/XMMS/etc.

    I recently invested some time in getting my WL-500g router to wirelessly play audio from Winamp, and I'd like to share this information with everybody, as I couldn't find much about this topic in the forums. The whole text is also available on this web page.

    Installing EsounD on the WL-500g

    For receiving sound streams on the router and playing them on the USB sound card, the well-kown EsounD daemon is used. You can either install it as an ipgk from Unslug or download the binary file from this location:

    EsounD daemon binary: esd

    Before starting it, the default ASUS sound server (useable only from Windows Media Player) needs to be killed, as it occupies the sound card:
    killall waveservermain
    killall waveserver
    Then the esd daemon can be started:
    esd -d /dev/sound/dsp -tcp -public &
    Connecting to the soundcard from a client computer

    If you are running Linux, you can use an audio player like XMMS or amaroK, choose an EsounD output plugin (gstreamer in case of amaroK) and enter the server's IP address.

    In order to connect to the EsoundD server from Windows, Kasper Laudrup has a nice EsounD output plugin for Winamp available at his site. Note that for Winamp 5 you need to download the Winamp 2 version, not Winamp 3. At the bottom of this page, there also is a link to an updated version, which includes better resampling.

    Special issues with the Audigy 2 NX

    If you have a Soundblaster Audigy 2 NX USB soundcard, some extra work has to be done as this one is not completely behaving like a normal USB soundcard. However, at least on Windows this is an excellent sound card, and it has a very good signal quality.

    Updated kernel module

    Note: the patch is included in the firmware from version on, so it is no longer necessary to replace the module

    The standard ASUS usb soundcard driver does not work with an Audigy 2 NX, so I had to patch it. Now it seems to run pretty stable. You can download the updated kernel module here:

    binary module (compiled for firmare): audio.o
    patch for the original kernel code: audio.c.diff

    To install the module, either replace the file in /lib/modules/2.4.20/kernel/drivers/usb/ (if you are running off a USB drive) and reboot or download it to some other location and exchange the module in the kernel with the following commands:

    rmmod audio
    insmod audio.o


    In case the soundcard uses a different sampling rate than your sound files, the esd daemon on the router will automatically resample the audio stream. Normally this should be no problem, as esd by default runs at 44100Hz, which also is the sampling rate of most MP3/Ogg/AAC/... files and therefore no resampling should happen. However, if you have an Audigy 2 NX, esd will only run at 48000Hz. Now the problem is that esd does a pretty bad job at resampling which results in audible loss of sound-quality, especially at high frequencies.

    The solution was to modify the esd Winamp plugin to automatically resample to the server frequency using the Secret Rabbit Code library, which provides much higher conversion quality. The updated Winamp2/5 plugin is available for download at the following location:

    EsounD Winamp output plugin with resampling: out_esd.dll, sources

    To install, just copy the dll into the Winamp/Plugins directory and configure the plugin from Winamp preferences.

    Of course, you use the information given here and the software available for download at your own risk. The author is not responsible for any damage it may cause to your computer or router.
    Last edited by daniel632; 08-01-2006 at 18:03.

Similar Threads

  1. USB audio - from Linux
    By mangodan in forum WL-500g Custom Development
    Replies: 5
    Last Post: 10-04-2007, 13:25
  2. Wie funktioniert das Audio Streaming auf dem WL-500G Deluxe?
    By nosilent in forum German Discussion - Deutsch (DE)
    Replies: 3
    Last Post: 21-11-2005, 15:33
  3. Audio Video streaming problem
    By jeemedia in forum WL-500g Custom Development
    Replies: 1
    Last Post: 23-06-2005, 15:36
  4. Wireless audio setup - advice pls
    By Graldensblud in forum WL-500g Q&A
    Replies: 2
    Last Post: 28-04-2005, 00:51
  5. New Specs from Asus - Audio Streaming and Traffic Shaping
    By ghaspias in forum WL-500g Pics & Specs
    Replies: 18
    Last Post: 25-04-2005, 07:58

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts