Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109093 - Include the skype_dsp_hijacker fix in the skype ebuild
Summary: Include the skype_dsp_hijacker fix in the skype ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Net-im project
URL:
Whiteboard:
Keywords:
: 127579 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-13 00:18 UTC by Alex Weiss
Modified: 2006-07-02 16:12 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Weiss 2005-10-13 00:18:01 UTC
Skype (or just Skypeout, I don't know) has a major problem in that you can only
make a single call unless you close the program and restart it. I was looking
around and, apparently, this has to do with it leaving /dev/dsp open or some
such thing. There's a fix out there called skype_dsp_hijacker which deals with
the problem and, if it's safe, I think it would be good to include it in the ebuild.

Reproducible: Always
Steps to Reproduce:
1.Call somebody with skypeout.
2.Try calling a second party
3.

Actual Results:  
Skype says the call failed.

Expected Results:  
The call should have gone through.
Comment 1 Robert S 2006-03-22 02:53:17 UTC
I've just installed skype_dsp_hijacker and start skype thus:

#!/bin/bash
MIXERDEV=/dev/mixer1 MICDEV=/dev/dsp1 SPEAKERDEV=/dev/dsp1 \ LD_PRELOAD=libskype_dsp_hijacker.so:libdl.so.2 /opt/skype/skype.bin

(I use a USB headset as my second sound device).  I can confirm that skype doesn't work when I call a second party, but that it does when I install the hijacker and use the above script.  I'd like this to be added to the skype ebuild, or at least including the hijacker as a separate ebuild.  Maybe I'll post it as a bug this weekend if I have the wit to do it.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-03-25 16:53:32 UTC
*** Bug 127579 has been marked as a duplicate of this bug. ***
Comment 3 Alexandros Karypidis 2006-04-27 14:58:54 UTC
It appears there's a neat workaround for the "only one call possible issue":

http://forum.skype.com/viewtopic.php?t=32290http://forum.skype.com/viewtopic.php?t=32290&postdays=0&postorder=asc&start=135&postdays=0&postorder=asc&start=135

As people at the skype forum found out, the problem stems from the file hangup.wav being a 16-bit wave file whereas all other skype sounds are 8-bit wave files. Converting the file with:

 cd /usr/share/skype/sound 
 mv hangup.wav hangup16.wav 
 sox hangup16.wav -b hangup.wav 

solves the problem and also allows you to hear the hangup sound.
Comment 4 Robert S 2006-04-28 15:43:24 UTC
# file *
busy4.wav:    RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit, mono 11025 Hz
call_in.wav:  RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit, mono 44100 Hz
call_out.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit, mono 11025 Hz
hangup16.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 11025 Hz
hangup.wav:   RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit, mono 11025 Hz
im.wav:       RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 16000 Hz


I assume that the same applies to the file im.wav.
Comment 5 Alexandros Karypidis 2006-04-29 04:25:05 UTC
Yes, I have converted both.

By the way, keep in mind that if you use dmix this won't work...
Comment 6 Alexandros Karypidis 2006-04-29 04:34:47 UTC
Correction: it won't work (the 16 -> 8 bit conversion) on AMD processors. I have verified this on my laptop. Can someone verify that it works for Intel processors?
Comment 7 Robert S 2006-05-03 04:54:27 UTC
I have managed to get the 16->8 bit conversion working on an Athlon XP 2000+, but it won't work on the AMD64 version.
Comment 8 Gustavo Felisberto (RETIRED) gentoo-dev 2006-07-02 16:12:02 UTC
Skype 1.3 and up now use ALSA so all these wrappers and stuff are no longer needed.