You are not logged in.

#1 2011-06-30 20:32:29

casper
Member
Registered: 2008-08-03
Posts: 15

[ALSA] alsa server kind of broken

Recently, I think the alsa server or something has broken on my PC. I think I'll have to reinstall Arch all over because I don't know what to do with this, or what has caused this problem.
The symptoms: MPC still plays most music normally, although I can not in anyway alter the volume it's playing at. Not in GMPC, not with the Gnome mixer (it says no applications are playing or recording sound). JACK applications, in this case Renoise, also still do what they're supposed to. Now the problem comes when playing music with another app like plain old MPlayer, or videos from Youtube. They all skip through everything real fast, like there's a problem with the timing (i'm talking a minute skips through with no sound in less than 2 seconds).
Anyone knows what the problem is? libmpeg? flashplugin? I have already tried a normal pacman sync/update I'm really dying for clues smile.

Last edited by casper (2011-06-30 21:06:39)

Offline

#2 2011-06-30 20:48:17

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,803

Re: [ALSA] alsa server kind of broken

Your Shift key is broken.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2011-06-30 20:58:36

casper
Member
Registered: 2008-08-03
Posts: 15

Re: [ALSA] alsa server kind of broken

ewaller wrote:

Your Shift key is broken.

pardon me but, how d'you mean? how'd you figure?

EDIT: HAPPY NOW? smile

Last edited by casper (2011-06-30 21:06:53)

Offline

#4 2011-06-30 21:02:35

casper
Member
Registered: 2008-08-03
Posts: 15

Re: [ALSA] alsa server kind of broken

btw, when i open a MP3 file in mplayer via commandline, the following is printed:

MPlayer SVN-r33713-4.6.0 (C) 2000-2011 MPlayer Team
163 audio & 362 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing Sonar 09 friday night joker mix.mp3.
Audio only file format detected.
Load subtitles in ./
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 116.5 (01:56.4) of 3007.0 (50:07.0)  0.4% 


MPlayer interrupted by signal 2 in module: play_audio
A: 116.7 (01:56.6) of 3007.0 (50:07.0)  0.4% 

Exiting... (Quit)

The ratio part on the line beginning with "AUDIO:" kind of bothers me.
FLAC files have the same:

MPlayer SVN-r33713-4.6.0 (C) 2000-2011 MPlayer Team
163 audio & 362 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing 06 - Moon Fever.flac.
Audio only file format detected.
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 740.2 kbit/52.45% (ratio: 92530->176400)
Selected audio codec: [ffflac] afm: ffmpeg (FFmpeg FLAC audio)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 249.9 (04:09.9) of 250.0 (04:10.0)  0.3% 

This last file, which is supposed to take 4 minutes, was "played" in about 10 seconds.

Last edited by casper (2011-06-30 21:07:47)

Offline

#5 2011-06-30 22:12:19

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,803

Re: [ALSA] alsa server kind of broken

First, Thank you for the use of the shift key;  It makes the text far more legible.  I had meant it to be humorous, but it may not have come across that way.

Are all of the audio problems where the play back speed is wrong associated with video?  I recall some threads in which flash playback speed was way to fast.
Also, are you using Pulseaudio ?  If so, are you going from Alsa->PA->Jack ?
You had mentioned mplayer.  Which backend are you using ? (Alsa? Jack?) Have you tried different backends?

What is your audio chipset?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#6 2011-07-01 02:07:08

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [ALSA] alsa server kind of broken

The ratio is fine. OP seems to have problems with audio-only files too.

The flash-related threads ewaller mentioned:
https://bbs.archlinux.org/viewtopic.php?id=119701
https://bbs.archlinux.org/viewtopic.php?id=120800

[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory

What happened here? Have you tried

# modprobe snd_pcm_oss

?
http://mailman.archlinux.org/pipermail/ … 00793.html

Last edited by karol (2011-07-01 02:33:24)

Offline

#7 2011-07-01 03:31:16

casper
Member
Registered: 2008-08-03
Posts: 15

Re: [ALSA] alsa server kind of broken

Well, recently i hacked some config together to allow JACK, even while still playing music through MPC. I think MPC uses ALSA, I never used anything else.. well I'm not too sure about PulseAudio. I'm in windows now but let me try commenting some stuff out in the morning in the 81-arch.rules like karol's last link suggests.

@ewaller, yes, I realized somewhat later so yeah. Don't like typing with shift key, but thanks to you, I found out it's not too much effort. tongue btw standard intel onboard chipset (MSI website says Intel G31+ICH7)

Offline

#8 2011-07-01 11:14:53

casper
Member
Registered: 2008-08-03
Posts: 15

Re: [ALSA] alsa server kind of broken

So.. for the record here's my result of lsmod | grep snd

snd_usb_audio          73351  2 
snd_usbmidi_lib        15453  1 snd_usb_audio
snd_rawmidi            15295  1 snd_usbmidi_lib
snd_seq_device          4388  1 snd_rawmidi
snd_hda_codec_hdmi     20368  1 
snd_hda_codec_realtek   225687  1 
snd_hda_intel          19261  2 
snd_hda_codec          66793  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               4919  2 snd_usb_audio,snd_hda_codec
snd_pcm                60311  4 snd_usb_audio,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
usbcore               119004  7 snd_usb_audio,snd_usbmidi_lib,wacom,usbhid,uhci_hcd,ehci_hcd
snd_timer              15542  1 snd_pcm
snd                    43527  19 snd_usb_audio,snd_usbmidi_lib,snd_rawmidi,snd_seq_device,snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore               5018  1 snd
snd_page_alloc          5909  2 snd_hda_intel,snd_pcm

And I forgot to mention I also have a usb headset connected, but it's not used anywhere except when explicitly configured in audio workstations etc.
I have no 81-arch.rules, nor modules-load.sh, so that's not it either. modprobe snd-pcm-oss runs fine but sadly, fixes nothing. It's exceptionally weird that this did not occur over another update or something, just, from one day to another I'm unable to use most basic sound applications.
Never mind people, thanks a lot. I'm gonna have to reinstall, this thing is just all trojaned up. GTK Graphics started weirding out as well in audacity after recording.

Offline

#9 2011-07-05 19:02:48

casper
Member
Registered: 2008-08-03
Posts: 15

Re: [ALSA] alsa server kind of broken

Funny thing, on the usb out most things render correctly. As soon as I switch the main pulse default audio out to speakers it gets weird.

Offline

Board footer

Powered by FluxBB