Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
skype and alsa dmix
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Hetfield666
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2004
Posts: 99

PostPosted: Sat Jul 02, 2005 8:28 am    Post subject: skype and alsa dmix Reply with quote

i have dmix alsa plugin and i use it with success with xmms and mplayer and other programs.

the problem is with skype, that uses oss libs.

i tried to start with aoss (aoss works with many apps here)

and i get segmentation faults. without aoss i can use skype, but without mixing.

i tried several skype versions, static and not, same issue for everyone.

Anyone solved that?


aoss skype
No running artsd or esd found
Starting skype without sound daemon
==========================================
/usr/bin/skype: line 50: 17970 Segmentation fault ${skypecmd} ${progopts} >>${logfile} 2>>${logfile}
Back to top
View user's profile Send private message
irondog
l33t
l33t


Joined: 07 Jul 2003
Posts: 715
Location: Voor mijn TV. Achter mijn pc.

PostPosted: Sat Jul 02, 2005 1:20 pm    Post subject: Reply with quote

It both sucks that:
* Alsa can't do software mixing for /dev/dsp (why??)
* Skype still uses OSS (/dev/dsp) instead of alsa.

So, same problem here.
_________________
Alle dingen moeten onzin zijn.
Back to top
View user's profile Send private message
Hetfield666
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2004
Posts: 99

PostPosted: Tue Jul 05, 2005 8:06 am    Post subject: Reply with quote

skype uses oss, but with aoss you can have dmix working.

there was a bug in aoss making skype crashing, fixed in alsa cvs now.

but sound is not working, and it's a alsa and skype cross bug.

i've filled some bug request, waiting for fix.
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Tue Jul 05, 2005 9:14 am    Post subject: Reply with quote

irondog wrote:
It both sucks that:
* Alsa can't do software mixing for /dev/dsp (why??)
* Skype still uses OSS (/dev/dsp) instead of alsa.

So, same problem here.


the alsa plugin for skype is being developed.
and the reason for /dev/dsp not being able to mix multiple streams:

http://www.sabi.co.uk/Notes/linuxSoundALSA.html wrote:
OSS applications dont share the sound card
By default the OSS compatibility devices respect POSIX rules and allow only exclusive opens unless the O_NONBLOCK option is given to open(2). This can be worked around either by using the aoss program, oss2jack, the non-block configuration directive, or the nonblock_open options of the snd-pcm-oss modules.


check that page for help.

you can also configure arts or esound to use alsa, and start skype with
Code:
artsdsp -m skype
or
Code:
esddsp skype


cheers!
_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
x.para
Apprentice
Apprentice


Joined: 22 May 2005
Posts: 174
Location: CZ

PostPosted: Tue Jul 05, 2005 10:31 pm    Post subject: Reply with quote

I had similar problem and I resolved it to disable KDE sound, emerging new alsa-driver, alsa-oss, alsa-lib and alsa-utils. Than it started to work fine with my Skype.
Back to top
View user's profile Send private message
KarlfstBorst
n00b
n00b


Joined: 08 Mar 2005
Posts: 41
Location: Darmstadt, Germany

PostPosted: Wed Jul 06, 2005 12:07 pm    Post subject: Reply with quote

Hi! I use Skype with aoss, dmix, snoop and Gnome Soundserver without problems.

My setup:
*M-Audio Audiophile 2496
*Intel Soundcard onboard
*Skype 1.0.0.20
*ALSA 1.0.8
.asoundrc:
------------------
pcm.audiophile {
type hw
card 0
}

pcm.intel {
type hw
card 1
}


# ICE1712 dmix:
pcm.ossmix {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 4096 # buffer size < 6653, but pow(x, 2)
rate 44100 # we want to play CDs only
}

bindings {
0 0
1 1
}
}


#######################################
# Allow reading from the default device.
# Also known as record or capture.
pcm.dsnoop {
type dsnoop
ipc_key 2048
slave.pcm "intel"

bindings {
0 0
1 1
}
}

# This is what we want as our default device
# a fully duplex (read/write) audio device.
pcm.duplex {
type asym
playback.pcm "ossmix"
capture.pcm "dsnoop"
}
#######################################



# Everything shall be dmixed, so redefine "default":
pcm.!default {
type plug
#slave.pcm "ossmix"
slave.pcm "duplex"
}

# OSS via aoss should d(mix)stroyed:
pcm.dsp0 {
type plug
#slave.pcm "ossmix"
slave.pcm "duplex"
}

# OSS control for dsp0 (needed?...this might not be useful)
#ctl.dsp0 {
# type plug
# slave.pcm "audiophile"
# #slave.pcm "duplex"
#}


# OSS control for dsp0 (needed?...this might not be useful)
#ctl.dsp1 {
# type plug
# slave.pcm "intel"
#}

ctl.mixer0 {
type hw
card 0
}

#ctl.mixer1 {
# type hw
# card 1
#}
---------------------

Best regards

André.
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Wed Jul 06, 2005 12:59 pm    Post subject: Reply with quote

@ KarlfstBorst

boah! you managed to route the mic in of your onboard card with dsnoop? awesome! must test that too!
i'm currently using line in and mic is connected to my dj mixer, which i use as mic preamp that way :P
delta audiophile 2496 too ;)

EDIT: humm, using your asoundrc i can't open any device at all:
EDIT2: ah, got it! awesome! udev didn't create mixer0.. but only mixer

thx!
_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
irondog
l33t
l33t


Joined: 07 Jul 2003
Posts: 715
Location: Voor mijn TV. Achter mijn pc.

PostPosted: Fri Jul 08, 2005 2:55 pm    Post subject: Reply with quote

gimpel wrote:

http://www.sabi.co.uk/Notes/linuxSoundALSA.html wrote:
OSS applications dont share the sound card
By default the OSS compatibility devices respect POSIX rules and allow only exclusive opens unless the O_NONBLOCK option is given to open(2). This can be worked around either by using the aoss program, oss2jack, the non-block configuration directive, or the nonblock_open options of the snd-pcm-oss modules.



The nonblock_open option of the snd-pcm-oss kernel module only prevents from getting and open error when two programs try to access the /dev/dsp device. There is no mixing.
_________________
Alle dingen moeten onzin zijn.
Back to top
View user's profile Send private message
cast0r
Tux's lil' helper
Tux's lil' helper


Joined: 15 Dec 2004
Posts: 89

PostPosted: Wed Jul 13, 2005 3:25 pm    Post subject: Reply with quote

which package owns aoss, dmix, and snoop?
Back to top
View user's profile Send private message
Poseidon
n00b
n00b


Joined: 18 Apr 2002
Posts: 18
Location: New Hampshire, US

PostPosted: Tue Aug 16, 2005 6:19 pm    Post subject: Quick answer for a quick question... Reply with quote

Just emerge package 'alsa-oss'.
Back to top
View user's profile Send private message
phadron
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2003
Posts: 96
Location: Padova

PostPosted: Tue Aug 23, 2005 9:30 pm    Post subject: Reply with quote

x.para wrote:
I had similar problem and I resolved it to disable KDE sound, emerging new alsa-driver, alsa-oss, alsa-lib and alsa-utils. Than it started to work fine with my Skype.


how can I turn off KDE sound ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum