Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA: Poor Quality, songs play to fast [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
woolsherpahat
Guru
Guru


Joined: 09 Mar 2004
Posts: 347

PostPosted: Wed Dec 08, 2004 5:10 am    Post subject: ALSA: Poor Quality, songs play to fast [SOLVED] Reply with quote

I'm having problems getting my sound to work correctly on my iBook G4. I can get xmms to play a song but the song plays too fast and there's lots of static. Has anyone gotten ALSA to work with the iBook G4s? I'm currently using the 2.6.9-r1 kernel and have had this problem since 2.6.7-blahblah.

Here's the revelent part of my kernel config:
Code:
CONFIG_SOUND=y
# CONFIG_DMASOUND_PMAC is not set

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_RAWMIDI=y
CONFIG_SND_SEQUENCER=y
CONFIG_SND_SEQ_DUMMY=y
CONFIG_SND_OSSEMUL=y
# CONFIG_SND_MIXER_OSS is not set
CONFIG_SND_PCM_OSS=y
CONFIG_SND_SEQUENCER_OSS=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
# ALSA PowerMac devices
#
CONFIG_SND_POWERMAC=y

#
# ALSA USB devices
#
CONFIG_SND_USB_AUDIO=y


That's about everything I have turned on in my kernel. Does anyone have a working kernel .config I can look through?
...
_________________
The Real OTW
"Blue skies and high fives"


Last edited by woolsherpahat on Mon Dec 13, 2004 6:57 am; edited 1 time in total
Back to top
View user's profile Send private message
Tuna
Guru
Guru


Joined: 19 Jul 2002
Posts: 485
Location: Berlin

PostPosted: Wed Dec 08, 2004 10:21 am    Post subject: Reply with quote

im not familiar with sound on a g4. but take a look into alsamixer. it may be that you accidently enabled something called similar to'Rate Locking'. with that enabled the soundcard wont change its rate appropiate to the input and therefore may result in fast or slow playback.
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Wed Dec 08, 2004 7:00 pm    Post subject: Reply with quote

You could try increasing the Buffer Time and Period Time under Options -> Preferences -> Audio I/O Plugins -> Output Plugin: ALSA -> Configure -> Advanced Settings.

Try setting the buffer up to 10000 or something maybe that helps...
Back to top
View user's profile Send private message
woolsherpahat
Guru
Guru


Joined: 09 Mar 2004
Posts: 347

PostPosted: Thu Dec 09, 2004 12:04 am    Post subject: Reply with quote

First off thanks for your help.

@Tuna

I looked in alsamixer but couldn't find the option you were refering too. I browsed the manfiles for alsamixer and amixer as well but couldn't find it.

@DiskBreaker

I also tried bumping up the Buffer to 10000 but there was no improvement with the rate of play or the amount of skipping, popping, etc. I should note that these files play fine under OS X (I've tried an AAC and Mp3).
_________________
The Real OTW
"Blue skies and high fives"
Back to top
View user's profile Send private message
stimuli
Apprentice
Apprentice


Joined: 16 Dec 2002
Posts: 292
Location: Vancouver, BC, Canada

PostPosted: Thu Dec 09, 2004 6:51 pm    Post subject: Reply with quote

I have the same thing, so I just use the esound plugin in XMMS. That bug has existed for years on PPC AFAIK.
Back to top
View user's profile Send private message
woolsherpahat
Guru
Guru


Joined: 09 Mar 2004
Posts: 347

PostPosted: Fri Dec 10, 2004 12:32 am    Post subject: Reply with quote

Hmm, well that's disappointing to here, however good news is esound plugin works perfectly! Is there any disadvantages over using the esound output instead of the ALSA one?
_________________
The Real OTW
"Blue skies and high fives"
Back to top
View user's profile Send private message
Teutates
n00b
n00b


Joined: 03 Oct 2004
Posts: 1
Location: Düsseldorf, Germany

PostPosted: Fri Dec 10, 2004 9:56 am    Post subject: Reply with quote

I had the same problem on my iBook G3, but it disappeared after I put an .asoundrc in my $HOME (don't ask me, why ;-) ).


# ~/.asoundrc

# our 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
}
}

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

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

ctl.mixer0 {
type hw
card 0
}


I copied this file from a webpage, which described how to use the alsa-dmix-plugin, and I copied this file, because I wanted to use this plugin. But since I have this file, the dmix-plugin works, and the problem you described disappeared almost...just that xmms still stops playing mp3s sometimes...
Back to top
View user's profile Send private message
woolsherpahat
Guru
Guru


Joined: 09 Mar 2004
Posts: 347

PostPosted: Mon Dec 13, 2004 6:57 am    Post subject: Reply with quote

Wow, thanks. I have no idea what that file is but it certainly works!
_________________
The Real OTW
"Blue skies and high fives"
Back to top
View user's profile Send private message
ruben
Guru
Guru


Joined: 04 Jul 2003
Posts: 462

PostPosted: Tue Dec 14, 2004 9:07 pm    Post subject: Reply with quote

10k1 wrote:
Hmm, well that's disappointing to here, however good news is esound plugin works perfectly! Is there any disadvantages over using the esound output instead of the ALSA one?

yeah... *lag* and at times lots of lag... i found there just is no 'decent' well-supported software audio mixing solution on linux.

why isn't hardware mixing standard on soundcards these days :(
Back to top
View user's profile Send private message
Tuna
Guru
Guru


Joined: 19 Jul 2002
Posts: 485
Location: Berlin

PostPosted: Wed Dec 15, 2004 10:10 am    Post subject: Reply with quote

Quote:
why isn't hardware mixing standard on soundcards these days


that would require resampling every audio input to one and the same frequency. see that on creative live and audigy cards for example. this is enough for just playing sounds and music. but there are alot of people out there who want high quality and true audio playback for perfect listening experience. so they want to play an audio cd at 44,1khz like it was produced and dont want to get it converted to 48khz.

i dont know if there is a soundcard out there that has hardware mixing without resampling. i dont even know if this is even technically possible?
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Fri Dec 17, 2004 10:46 am    Post subject: Reply with quote

Just installed the latest kernel (2.6.9-r9) and the sound stopped working. :( During bootup alsa is initialized and restoring the sound levels dumps the following

Code:
root@tigger ~ # alsactl restore
alsactl: set_control:805: warning: name mismatch (DRC Switch/DRC Range) for control #8
alsactl: set_control:892: bad control.8.value type


Any ideas what's happening? The system beep sounds weird too, totally different with an echo...

Jens
_________________
Jens Troeger
http://savage.light-speed.de/
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Sat Dec 18, 2004 8:38 am    Post subject: Reply with quote

I could resolve the above problem using the alsamixer. However, mplayer seems to be out of sync now: the sound is a little too fast and lags behind?! I'll play around with it a little...

Jens
_________________
Jens Troeger
http://savage.light-speed.de/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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