LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-30-2006, 08:43 PM   #1
secretservgy
Member
 
Registered: Jul 2006
Location: New York, USA
Distribution: kUbuntu 12.04.1 LTS, Debian, Whiite-Linux
Posts: 50

Rep: Reputation: 19
Exclamation Upgraded from Dapper -> Edgy, No sound in gaim or gajim


I just updated from Dapper 6.06 to Edgy 6.10 , i have fixed mode of the bugs. The only thing that is annoying me now is that there is no sound with gaim or gajim (a jabber/gmail IM client). I have problems with sound, such as every few startups sound wont work. But gaim and gajim sound used to work. There is also a problem with moc(p) in which none of my songs will play, it says that /dev/dsp is not accesable, but i can play them fine in amaroK. How can i fix this, i'm thinking they are the same problem? Thanks.

Last edited by secretservgy; 10-30-2006 at 08:48 PM.
 
Old 10-30-2006, 08:55 PM   #2
FreeDoughnut
Member
 
Registered: Jun 2006
Distribution: Slackware 10.2, Debian Testing/Unstable, Ubuntu Breezy Badger, working on LFS
Posts: 228

Rep: Reputation: 30
You need to set up DMIX software mixing. Google "dmix" and the first result is a great Debian tutorial.
 
Old 10-30-2006, 09:16 PM   #3
secretservgy
Member
 
Registered: Jul 2006
Location: New York, USA
Distribution: kUbuntu 12.04.1 LTS, Debian, Whiite-Linux
Posts: 50

Original Poster
Rep: Reputation: 19
That seems hard. I attempted it, didnt work.
 
Old 10-31-2006, 06:02 AM   #4
FreeDoughnut
Member
 
Registered: Jun 2006
Distribution: Slackware 10.2, Debian Testing/Unstable, Ubuntu Breezy Badger, working on LFS
Posts: 228

Rep: Reputation: 30
It's not that hard. First just run
Code:
apt-get install alsa-oss alsaplayer mpg321 alsaplayer-alsa alsa-base
to install the necessary programs. Then test it out:
Code:
alsaplayer -o alsa -d plug:dmix pathtomp3.mp3 &
aplay -D plug:dmix pathtowav.wav &
alsaplayer -o alsa -d plug:dmix pathtomp3.mp3 &
If you can't hear all of them playing, there's some sort of problem. Next you set up your .asoundrc file.
Code:
cat > ~/.asoundrc << EOF
pcm.ossmix {
    type dmix
    ipc_key 1024 # must be unique!
#   ipc_key_add_uid false   # let multiple users share
#   ipc_perm 0666           # IPC permissions for multi-user sharing (octal, default 0600)
    slave {
        pcm "hw:0,0"      # you cannot use a "plug" device here, darn.
        period_time 0
        period_size 1024 # must be power of 2
        buffer_size 8192  # dito. It
       #format "S32_LE"
       #periods 128 # dito.
       #rate 8000 # with rate 8000 you *will* hear,
       # if ossmix is used :)
    }
    # bindings are cool. This says, that only the first
    # two channels are to be used by dmix, which is
    # enough for (most) oss apps and also lets 
    # multichannel chios work much faster:
    bindings {
        0 0 # from 0 => to 0
        1 1 # from 1 => to 1
    }
}
pcm.dsp0 {
    type plug
    slave.pcm "ossmix" # use our new PCM here
}
# mixer0 like above
ctl.mixer0 {
    type hw
    card 0
}

# You may want to make your new ossmix the default for alsa.
# If your alsa programs are complaining that they can't open
# your sound devices, try uncommenting this next line
#pcm.default pcm.dsp0
EOF
Now test out aoss:
Code:
aoss mpg123 pathtomp3.mp3 &
aoss mpg123 pathtomp3.mp3 &
alsaplayer -o alsa -d ossmix some.mp3 &
They should all play sound at the same time. If not, post what's happening.

Ripped from http://alsa.opensrc.org/index.php?page=DmixPlugin (i.e. not my work)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Smart ways to update from dapper to edgy? oskar Ubuntu 15 11-27-2006 07:50 PM
GDM crashes since update from Dapper to Edgy morrolan Ubuntu 2 10-30-2006 06:31 AM
AC '97 Sound not working, Dapper Taigrr Ubuntu 3 10-08-2006 10:52 PM
No sound in Dapper Drake dittyman1 Ubuntu 3 08-27-2006 11:16 AM
upgraded to 'Dapper'. can ya have a look at this output? randell6564 Ubuntu 8 06-06-2006 12:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration