Help - Search - Members - Calendar
Full Version: Redirect Skype to /dev/dsp1
Skype Community > English > Skype for Linux
snow-x_
Hi folks,

here is a smal programm to change the Skype behaviour to open /dev/dsp instead of /dev/dsp1, the usb headset i've got.
The trick is simple. It is possible over the variable LD_PRELOAD to change the normal 'open' system call. So every time Skype is trying to open /dev/dsp, it actually opens /dev/dsp1.

The small program can be found at http://suedpol.dyndns.org/skype.

enjoy...

wink.png
jalbin_
Hi!

Thanks very much for the skype_dsp_hijacker code - until Skype comes with configurations options for setting separate input and output devices, this helped me to get sound working.

My problem was that I use a Philips USB webcam as microphone, and Skype wants to use the same device for input and output. This doesn't work in my case, since the webcam has no built-in speaker. smile.png

So, after hacking the code a bit, I just got Skype working with separate devices for sound input and output. Now when Skype tries to open /dev/dsp, the patch makes it open TWO devices instead; /dev/dsp (my soundcard), AND /dev/dsp2 (my webcam microphone).

I'll be glad to send the patched skype_dsp_hijacker to anyone who has a similar setup, and wants to use separate devices for input and output.

Regards
Jan Albin
jan@nsgroup.net
jalbin_
My patch against skype_dsp_hijacker, which enables me (and hopefully others, too!) to use separate devices for sound input and output can be downloaded from

http://195.38.3.142:6502/skype/

With this, my USB webcam microphone works as an input device, while still getting sound output sent to the soundcard.

It may or may not work on your system.

Please tell me if you find this useful!

The original skype_dsp_hijacker can be found at
http://suedpol.dyndns.org/skype/

Regards
Jan Albin
jan@nsgroup.net
Gatak_
Great idea with this hijacker script. I wonder why Skype didn't allow for choosing both input and output devices under Linux just as it does in Windows.

In any case, I have not gotting this script to work with Skype. Although it uses the correct output device I get no sound from the Philips USB webcam microphone.

My setup is:

/dev/dsp built-in soundcard - computer speakers
/dev/dsp1 SB-Live - headphones
/dev/dsp2 Philips USB webcam - microphone

Any hints on what can be wrong. Maybe I am using wrong mixer device? Should I use the mixer device belonging to the output or input soundcard?

I am running skype from a bash script like this:

MIXERDEV=/dev/mixer1 MICDEV=/dev/dsp2 SPEAKERDEV=/dev/dsp1 LD_PRELOAD=/usr/lib/libskype_dsp_hijacker.so:/lib/libdl.so.2 skype
the_NEO_JP_
Hi to all Skype users.

I do have a Logitech Webcam, so I would like to use this script. But I still don't understand how to use it, because of the Jan's patch, and I'm kinda lost .

Could someone help me with this, please ?

My sound card is /dev/dsp
My webcam's microphone is /dev/dsp1

Thanks to all.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.