Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alsa sound mixing aka dmix (not arts or esd needed)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4 ... 10, 11, 12  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
charlieg
Advocate
Advocate


Joined: 30 Jul 2002
Posts: 2149
Location: Manchester UK

PostPosted: Thu Feb 26, 2004 2:54 pm    Post subject: Reply with quote

Hmm, my 'short' config was causing alsa to barf for a couple of games.

Now I've reset it to something more normal, but get this:
Code:
charlie@mightymax charlie $ solarwolf
python: pcm_rate.c:512: snd_pcm_rate_init: Assertion `0' failed.
Aborted


My asount.conf:
Code:
mightymax etc # cat asound.old
pcm.mixer {
  type dmix
  ipc_key 1024
  slave {
    pcm "hw:0,0"
    period_time 0
    period_size 1024
    buffer_size 8192
    rate 44100
  }
}
 
pcm.!default {
  type plug
  slave.pcm "mixer"
}

_________________
Want Free games?
Free Gamer - open source games list & commentary

Open source web-enabled rich UI platform: Vexi
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Thu Feb 26, 2004 5:44 pm    Post subject: Reply with quote

get same error, moving /etc/asound.conf and restarting alsasound init script solves it.
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
OldTango
l33t
l33t


Joined: 21 Feb 2004
Posts: 718

PostPosted: Thu Feb 26, 2004 11:42 pm    Post subject: Reply with quote

I have a question about the kernel itself. I am running the 2.6.3-gentoo-r2 kernel. I have configured it with Alsa and my sound device (SB Audigy XGamer) built in. Do I need to also tell it to use OSS-Emulation as I haven't built that into the kernel. My sound works but not well. and i haven't installed alsa-oss. I am not quite sure what the 2.6.3 kernel needs for proper support.

Please excuse my ignorance here. I am not just a noob on the forum but a total noob to linux.
Back to top
View user's profile Send private message
charlieg
Advocate
Advocate


Joined: 30 Jul 2002
Posts: 2149
Location: Manchester UK

PostPosted: Fri Feb 27, 2004 2:04 am    Post subject: Reply with quote

TheCoop wrote:
get same error, moving /etc/asound.conf and restarting alsasound init script solves it.


But that's just working around the problem.

No matter, I've tracked down the reason and the fix and logged it as a bug:
https://bugs.gentoo.org/show_bug.cgi?id=43052

It's a one line patch, a missed break; statement.
_________________
Want Free games?
Free Gamer - open source games list & commentary

Open source web-enabled rich UI platform: Vexi
Back to top
View user's profile Send private message
Kymas
n00b
n00b


Joined: 03 May 2003
Posts: 24

PostPosted: Fri Feb 27, 2004 4:04 am    Post subject: Reply with quote

I have managed to get the dmix plugin working fine for alsa and oss apps but when I run nwn, which uses the SDL library, everything gets extreamly laggy and the game is unplayable. I have tried using the current gentoo version of SDL and I compiled 1.2.6 specifically for nwn. The gentoo version seemed slightly less laggy but was still unplayable.

I am using the onboard nvidia apu for sound output; I believe I read that this is actually just software ac97 in Linux.

If anyone knows any tips to improve performance please let me know.

Thanks,


Kymas
Back to top
View user's profile Send private message
Shapierian
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2003
Posts: 88

PostPosted: Fri Feb 27, 2004 4:30 am    Post subject: Reply with quote

With just about any cofig liek Neik's for example mplayer gives me:

Code:
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
alsa-init: requested format: 44100 Hz, 2 channels, Signed 16-bit (Little-Endian)alsa-init: soundcard set to default
alsa-init: unable to set periodsize: Invalid argument
Could not open/initialize audio device -> no sound.



Is there a work around for this I set xmms to use "default" and "-ao alsa9:default" for mplayer.
Back to top
View user's profile Send private message
Niek
Apprentice
Apprentice


Joined: 14 May 2002
Posts: 236
Location: Houten, The Netherlands

PostPosted: Fri Feb 27, 2004 7:24 am    Post subject: Reply with quote

Shapierian wrote:
With just about any cofig liek Neik's for example mplayer gives me:
(...)
Is there a work around for this I set xmms to use "default" and "-ao alsa9:default" for mplayer.
There's a patch for MPlayer to solve this problem. See https://forums.gentoo.org/viewtopic.php?t=124976 and https://bugs.gentoo.org/show_bug.cgi?id=38476 how to solve this.
_________________
Bezoek ook eens de Nederlandstalige Gentoo IRC channel op irc.freenode.net - #gentoo-nl
Back to top
View user's profile Send private message
charlieg
Advocate
Advocate


Joined: 30 Jul 2002
Posts: 2149
Location: Manchester UK

PostPosted: Fri Feb 27, 2004 10:08 am    Post subject: Reply with quote

charlieg wrote:
No matter, I've tracked down the reason and the fix and logged it as a bug:
https://bugs.gentoo.org/show_bug.cgi?id=43052

It's a one line patch, a missed break; statement.


The fix was already incorporated in a silent re-release of alsa-1.0.2; if you're afflicted by this problem you need to 'rm /usr/portage/distfiles/alsa-lib-1.0.2.tar.gz' and re-emerge alsa-lib. This should fix it - it worked for me.
_________________
Want Free games?
Free Gamer - open source games list & commentary

Open source web-enabled rich UI platform: Vexi
Back to top
View user's profile Send private message
kf_man
n00b
n00b


Joined: 20 Feb 2004
Posts: 21

PostPosted: Fri Feb 27, 2004 6:38 pm    Post subject: Multiple sounds work somewhat! Reply with quote

I can play XMMS and hear sounds done using aplay. This works ok as I can now here Gaim sounds when I set the sound method to the command "aplay %s." Is there anyway to make kde's sounds work while playing xmms? Thanks.
_________________
-Kyle
Linux n00b

System:
HP zt3000
Pentium M 1.6 GHz
1GB PC2700 DDR SDRAM
100GB 5400RPM
Intel audio
ATI Radeon 9000
Realtek 8139
IPW2200
Agere Modem
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Fri Feb 27, 2004 7:07 pm    Post subject: Reply with quote

the sound in xine is very crackly when I enable dmix, otherwise it works fine...
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
charlieg
Advocate
Advocate


Joined: 30 Jul 2002
Posts: 2149
Location: Manchester UK

PostPosted: Fri Feb 27, 2004 11:16 pm    Post subject: Reply with quote

Does this make the sound quality awful for totem for anybody else other than me? And it also makes rhythmbox crash...

:cry:
_________________
Want Free games?
Free Gamer - open source games list & commentary

Open source web-enabled rich UI platform: Vexi
Back to top
View user's profile Send private message
Niek
Apprentice
Apprentice


Joined: 14 May 2002
Posts: 236
Location: Houten, The Netherlands

PostPosted: Sat Feb 28, 2004 12:52 pm    Post subject: Re: Multiple sounds work somewhat! Reply with quote

kf_man wrote:
I can play XMMS and hear sounds done using aplay. This works ok as I can now here Gaim sounds when I set the sound method to the command "aplay %s." Is there anyway to make kde's sounds work while playing xmms? Thanks.
Control Center -> Sound & Multimedia -> System Notifications -> Player Settings and enable "Use external player" (just use aplay as command).
_________________
Bezoek ook eens de Nederlandstalige Gentoo IRC channel op irc.freenode.net - #gentoo-nl
Back to top
View user's profile Send private message
Redeeman
l33t
l33t


Joined: 25 Sep 2003
Posts: 958
Location: Portugal

PostPosted: Sat Feb 28, 2004 9:42 pm    Post subject: Reply with quote

TheCoop wrote:
the sound in xine is very crackly when I enable dmix, otherwise it works fine...


yes, i notice this in pornview :/

and mplayer sometimes plays fast :/
Back to top
View user's profile Send private message
Redeeman
l33t
l33t


Joined: 25 Sep 2003
Posts: 958
Location: Portugal

PostPosted: Sat Feb 28, 2004 9:42 pm    Post subject: Reply with quote

charlieg wrote:
Does this make the sound quality awful for totem for anybody else other than me? And it also makes rhythmbox crash...

:cry:


you might want to fiddle with the rate parameter, that works on some chips, for example thats needed on my via82xx
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Sat Feb 28, 2004 10:28 pm    Post subject: Reply with quote

Redeeman wrote:
you might want to fiddle with the rate parameter, that works on some chips, for example thats needed on my via82xx

Fiddle with it how?
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
cca93014
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2002
Posts: 77
Location: London, UK

PostPosted: Sun Feb 29, 2004 12:41 pm    Post subject: Reply with quote

I have this working for XMMS, gAIM and mplayer, but I cant get Gnome sounds to play. Any ideas?
Back to top
View user's profile Send private message
hjlane3
Guru
Guru


Joined: 22 Feb 2003
Posts: 377
Location: Wilmington, DE USA

PostPosted: Sun Feb 29, 2004 11:39 pm    Post subject: Reply with quote

Working great for ALSA apps, but any oss apps that run or are run with aoss sound EXTREMELY crappy... what's wrong?
Code:
pcm.mixer {
  type dmix
  ipc_key 1024

  slave {
    pcm "hw:0,0"
    period_time 0
    period_size 1024
    buffer_size 8192
    rate 44100
  }
}
                                                                                             
pcm.!default {
  type plug
  slave.pcm "mixer"
}

_________________
I wish hell would freeze over already. :-(
EDIT: w00t, it has!
Back to top
View user's profile Send private message
Redeeman
l33t
l33t


Joined: 25 Sep 2003
Posts: 958
Location: Portugal

PostPosted: Mon Mar 01, 2004 10:33 am    Post subject: Reply with quote

i mean try set rate to 48000, that works on my new via82xx.

with aoss crappy. that might have something to do with the rate too, i am not quite sure. sorry
Back to top
View user's profile Send private message
Niek
Apprentice
Apprentice


Joined: 14 May 2002
Posts: 236
Location: Houten, The Netherlands

PostPosted: Tue Mar 02, 2004 6:47 am    Post subject: Reply with quote

*sigh* I upgraded to alsa-lib 1.0.3, and now my sound isn't working with the asound.conf file. Aplay doesn't play anything and MPlayer crashes. Other people with these problems after upgrading?
_________________
Bezoek ook eens de Nederlandstalige Gentoo IRC channel op irc.freenode.net - #gentoo-nl
Back to top
View user's profile Send private message
cca93014
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2002
Posts: 77
Location: London, UK

PostPosted: Tue Mar 02, 2004 6:58 am    Post subject: Reply with quote

How come people are getting version 1.0.3 of alsa. I just re-synced at got 0.9.8...?
Back to top
View user's profile Send private message
Niek
Apprentice
Apprentice


Joined: 14 May 2002
Posts: 236
Location: Houten, The Netherlands

PostPosted: Tue Mar 02, 2004 7:14 am    Post subject: Reply with quote

cca93014 wrote:
How come people are getting version 1.0.3 of alsa. I just re-synced at got 0.9.8...?
I'm using the unstable packages (ACCEPT_KEYWORDS="~x86" in make.conf) instead of the stable.
_________________
Bezoek ook eens de Nederlandstalige Gentoo IRC channel op irc.freenode.net - #gentoo-nl
Back to top
View user's profile Send private message
hjlane3
Guru
Guru


Joined: 22 Feb 2003
Posts: 377
Location: Wilmington, DE USA

PostPosted: Tue Mar 02, 2004 6:04 pm    Post subject: Reply with quote

Redeeman wrote:
i mean try set rate to 48000, that works on my new via82xx.

with aoss crappy. that might have something to do with the rate too, i am not quite sure. sorry

Ok i did that with my intel8x0
mpg123 mp3 would hog the sound card, not letting anything else use it
aoss mpg123 mp3 worked great!
but rhythmbox run with or w/out it still sound horrible :-(
_________________
I wish hell would freeze over already. :-(
EDIT: w00t, it has!
Back to top
View user's profile Send private message
Shiryou
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2004
Posts: 131
Location: United Kingdom

PostPosted: Wed Mar 03, 2004 2:05 pm    Post subject: Reply with quote

Well, lets see.... the aplayer multiple sound trick works for me so i guess thats ok. However, im wondering about everything else. The way i see it.... we've had decent enough soundcards for years now so why is such a simple thing like multiple sounds such a pain under linux. Its very poor. I imagine a lot of it is to do with the intel driver. Im using intel8x0 which i've heard is dire. My main machine uses an Nforce board and 5.1 so linux is going nowhere near it.

So.... my question is this. I reckon i understand thi dmix stuff... but how can i get KDE to work with it? The soundsystem selector in the KDE control panel lets me choose Alsa but it doesnt seem to let me play multiple sounds. Im usign kde3.2 witht -arts and +alsa use flagss with a 2.6.2 kernel.

I wonder... if theres a kernel patch for a better intel8x0 or soemthing? Possibly,
Back to top
View user's profile Send private message
Redeeman
l33t
l33t


Joined: 25 Sep 2003
Posts: 958
Location: Portugal

PostPosted: Wed Mar 03, 2004 8:41 pm    Post subject: Reply with quote

hjlane3 wrote:
Redeeman wrote:
i mean try set rate to 48000, that works on my new via82xx.

with aoss crappy. that might have something to do with the rate too, i am not quite sure. sorry

Ok i did that with my intel8x0
mpg123 mp3 would hog the sound card, not letting anything else use it
aoss mpg123 mp3 worked great!
but rhythmbox run with or w/out it still sound horrible :-(


applications only supporting oss should use aoss, but native alsa applications _should_ use alsa output device with device 4100
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Thu Mar 04, 2004 11:51 am    Post subject: Reply with quote

This thread confuse more than it help :(

Anyhow, when I try to use aplay, I get this
Code:
ALSA lib pcm_dmix.c:812:(snd_pcm_dmix_open) unable to open slave
aplay: main:503: audio open error: No such file or directory

_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3, 4 ... 10, 11, 12  Next
Page 3 of 12

 
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