LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-05-2003, 10:38 PM   #16
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Original Poster
Rep: Reputation: 31

Unfortunately, its a no go :-\. The sound card I am using is a SiS 7012, does anyone happen to have the buffer size of this beast on hand?
 
Old 12-06-2003, 01:01 PM   #17
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Original Poster
Rep: Reputation: 31
Man problems galore! For some reason when I play files in mplayer now, the sound is in a lower pitch. I watched the latest episode of Naruto with my brother and I was a little confused as to why ALL the voice actors got changed. Then I watched RahXephon (good show, great opening) and I realized that the opening was also deeper than normal, but no one would change the opening by lowering the pitch. I checked files I had already watched and they were all afflicted with the same problem...

UPDATE: Okay, I tried to install the latest version of MPlayer, but it has a problem finding ALSA and it won't compile with ALSA support, here's my configure.log
Code:
============ Checking for ALSA audio ============

#include <sys/asoundlib.h>
int main(void) { return (!(SND_LIB_MAJOR==0 && SND_LIB_MINOR==5)); }

gcc     /tmp/mplayer-conf-15271-5597.c -o /tmp/mplayer-conf-16166-5597.o -lasound -ldl -lpthread
In file included from /tmp/mplayer-conf-15271-5597.c:1:
/usr/include/sys/asoundlib.h:1:2: warning: #warning This header is deprecated, use <alsa/asoundlib.h> instead.

ldd /tmp/mplayer-conf-16166-5597.o
	libasound.so.2 => /usr/lib/libasound.so.2 (0x40023000)
	libdl.so.2 => /lib/libdl.so.2 (0x400bf000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x400c2000)
	libc.so.6 => /lib/libc.so.6 (0x40113000)
	libm.so.6 => /lib/libm.so.6 (0x40249000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


#include <sys/asoundlib.h>
int main(void) { return (!(SND_LIB_MAJOR==0 && SND_LIB_MINOR==9)); }

gcc     /tmp/mplayer-conf-15271-5597.c -o /tmp/mplayer-conf-16166-5597.o -lasound -ldl -lpthread
In file included from /tmp/mplayer-conf-15271-5597.c:1:
/usr/include/sys/asoundlib.h:1:2: warning: #warning This header is deprecated, use <alsa/asoundlib.h> instead.

ldd /tmp/mplayer-conf-16166-5597.o
	libasound.so.2 => /usr/lib/libasound.so.2 (0x40023000)
	libdl.so.2 => /lib/libdl.so.2 (0x400bf000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x400c2000)
	libc.so.6 => /lib/libc.so.6 (0x40113000)
	libm.so.6 => /lib/libm.so.6 (0x40249000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


#include <alsa/asoundlib.h>
int main(void) { return (!(SND_LIB_MAJOR==0 && SND_LIB_MINOR==9)); }

gcc     /tmp/mplayer-conf-15271-5597.c -o /tmp/mplayer-conf-16166-5597.o -lasound -ldl -lpthread

ldd /tmp/mplayer-conf-16166-5597.o
	libasound.so.2 => /usr/lib/libasound.so.2 (0x40023000)
	libdl.so.2 => /lib/libdl.so.2 (0x400bf000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x400c2000)
	libc.so.6 => /lib/libc.so.6 (0x40113000)
	libm.so.6 => /lib/libm.so.6 (0x40249000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Result is: no
##########################################
Bear in mind, I'm using the latest alsa drivers and whatnot, installed without a hitch. I continued compiling it and installed it (even though I knew it wouldn't work) and sure enough
Code:
Could not open/initialize audio device -> no sound.
Audio: no sound
I tried updating with another Slack package (that's how my original version of mplayer was installed 0.9.2 I believe) and it was giving me errors that it couldn't find some library files :-\. Sorry I can't give the exact error but I don't want to uninstall and reinstall things all over again. I googled for problems like this and the only one I found was someone who's files would play 12.3% faster all around. The problem was the sound was fixed to 48kHz so when 44kHz sound was played it was played at 48 so the audio was faster (or in this case higher pitched) the video, in order to stay in sync with the audio, it had to go faster also. My problem doesn't seem to be like this though, as the video output seems to go at the normal speed, although I never went and checked. I figured since the audio output was so great, the video speed difference would be easy to distinguish as well.

Last edited by GT_Onizuka; 12-06-2003 at 02:31 PM.
 
Old 12-06-2003, 05:12 PM   #18
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Original Poster
Rep: Reputation: 31
Okay, I've figured out my MPlayer going at varying pitches (well actually, speeds). The deal is in my .asoundrc file, its made to play at a certain sample rate, in this case rate 44100, what this does it make EVERYTHING play at this rate, so all my anime (well the majority of it) is at a higher rate, so when it is forced to play at the one specified in my .asoundrc file, the video and audio are slower (since they need to be in sync). I didn't think it was like this at first until I started watching random movie files I have on my computer. For example on an episode of Family Guy, the characters sounded like chipmunks and on the Super Mario Bros. 3 in 11 minutes video (which is insane by the way) the guy was flying at unprecidented speeds all pointing to the .asoundrc file. Is there a way I can make it so the rate gets chosen by the file or not? And this explains my whole mpg123 dillema because whenever I play ANY mp3 that is at 48kHz it plays fine in mpg123, however since most of mine are 44kHz (the same as CD's I believe, I'm not really an audiophile) they get played just like the original scratchy files which is the problem with StepMania and everything else I have been having problems with, however, XMMS seems to have the ability to let the file depict the rate while other programs (mplayer and mpg123) go by whatever the .asoundrc file tells them. Also, for me at least, programs that you can't change the audio device (like putting 'dmixer' into XMMS) will not play at all anymore, for example ZSNES gives me this error:
Code:
ALSA lib pcm_hw.c:1055:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: Device or resource busy
mcop warning: user defined signal handler found for SIG_PIPE, overriding
ALSA lib pcm_hw.c:1055:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: Device or resource busy
Sound init failed!
freq: 44100, channels: 2, samples: 1024
now that I have everything set up with dmixer, same with ePSXe, and since StepMania isn't taking advantage of dmixer, much like ZSNES and ePSXe, it is able to find the correct driver, but it can't open it making it lock-up. Man, I've typed way too much here today, I really hope I can get this thing working, maybe I should move all my posts to your (ZiGiE) other thread that you have sent me to.

EDIT: Okay, to get mplayer working fine, for every file that isn't already at whatever rate specified on your .asoundrc (lets say 44100 Hz) you have to add the option -srate 44100 so it changes the output, then, everything plays fine, is there anyway you can allow the app to choose the rate rather than point it out in the .asoundrc file? (I'm going to mess with it and see what I can do later tonight) I'll be on Gaim all night (pretty much) so if anyone makes progress gimme a message.

Last edited by GT_Onizuka; 12-06-2003 at 07:01 PM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Alert when root pw is being guessed at mattp Slackware 6 10-05-2005 01:24 AM
Hi. I'm new! (wow... who would have guessed) everbloom LinuxQuestions.org Member Intro 1 03-24-2004 03:43 PM
(I have searched)from 2.4.22 to 2.6.2 and Alsa gone bad Dark Carnival Slackware 4 02-05-2004 03:42 PM
sound on rh8 (you've guessed it ac'97!) Ian_Hawdon Red Hat 4 09-06-2003 09:24 AM
new to linux...Mouse problems (yes, I searched...) overdrive440 Linux - Hardware 1 06-11-2003 11:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:30 PM.

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