kevinboylan1989 / mupen64plus

Automatically exported from code.google.com/p/mupen64plus
0 stars 0 forks source link

Scratching sound when running unoptimized Atom build #562

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Running ROSA 2012lts (Linux) I am having horrible issues with scratchy, 
incorrect audio (sounds like nails on a chalk bboard, REAL BAD! I compiled this 
with -O0 and -march=atom'

I've made many attempts to correct using the configuration files, but there has 
been no effect. 

# Mupen64Plus SDL Audio Plugin config parameter version number
Version = 1
# Frequency which is used if rom doesn't want to change it
DEFAULT_FREQUENCY = 44100
# Swaps left and right channels
SWAP_CHANNELS = False
# Size of primary buffer in output samples. This is where audio is loaded after 
it's extracted from n64's memory.
PRIMARY_BUFFER_SIZE = 16384
# Fullness level target for Primary audio buffer, in equivalent output samples
PRIMARY_BUFFER_TARGET = 10240
# Size of secondary buffer in output samples. This is SDL's hardware buffer.
SECONDARY_BUFFER_SIZE = 2048
# Audio resampling algorithm. src-sinc-best-quality, src-sinc-medium-quality, 
src-sinc-fastest, src-zero-order-hold, src-linear, speex-fixed-{10-0}, trivial
RESAMPLE = "src-sinc-fastest"
# Volume control type: 1 = SDL (only affects Mupen64Plus output)  2 = OSS mixer 
(adjusts master PC volume)
VOLUME_CONTROL_TYPE = 1
# Percentage change each time the volume is increased or decreased
VOLUME_ADJUST = 5
# Default volume when a game is started.  Only used if VOLUME_CONTROL_TYPE is 1
VOLUME_DEFAULT = 80

Original issue reported on code.google.com by zombie_r...@yahoo.com on 27 Jun 2013 at 11:34

GoogleCodeExporter commented 8 years ago
Please provide a useful title.

You are trying to run an unoptimized build on an Atom? You usually get a lot of 
buffer problems because the CPU is the bottleneck here. So I cannot recommend 
this build at all.

Please check whether you are using pulseaudio and forgot to change SDL to the 
pulse backend. http://www.libsdl.org/docs/html/sdlenvvars.html

Original comment by s...@narfation.org on 27 Jun 2013 at 1:22

GoogleCodeExporter commented 8 years ago
And I cannot reproduce this problem when compiling the current  hg version with 
OPTFLAGS="" and CFLAGS="-O0 -march=atom" on Debian sid with gcc version 4.8.1 
(Debian 4.8.1-4)

Original comment by s...@narfation.org on 27 Jun 2013 at 1:40

GoogleCodeExporter commented 8 years ago
I am NOT running Pulse Audio. (Just ALSA.) The -O0 was necessary to get the 
emulator to build at all. 

Original comment by zombie_r...@yahoo.com on 27 Jun 2013 at 3:24

GoogleCodeExporter commented 8 years ago
Maybe someone else can reproduce it but I cant. Can you in the meantime provide 
the error log when compiling with

./m64p_build.sh V=1 OPTFLAGS="-O2 -march=atom"

or (when you compile each module independent)

make -C projects/unix V=1 OPTFLAGS="-O2 -march=atom" all

Original comment by s...@narfation.org on 29 Jun 2013 at 6:41