[SDL_mixer] artificial background noices

hi again

music playback sounds noisy
for every type I checked ( .mod, .xm, .ogg, .mp3, .mid )
even if I set CD quality parameters

first I thought that was getting 8 bit format set, or 11KHz freq
so I checked with Mix_QuerySpec();
and I got:
44,1KHz freq ( as requested )
AUDIO_S16SYS ( as requested )
2 channels ( as requested )

next I thought that I was using some down sampled music
( those artificial background noices sounds like it was the case )
but no, I play tested everyone of them using other players
and everything sounds fine

so does enybody know why music is so noisy?
any suggestions?

adam szwajnoch

Just a shot in the dark but perhaps you would get better quality by mixing to a higher rate like 96000Hz rather than 44100Hz, some sound drivers will resample your 44100Hz stream to 48000Hz rather
than to a higher rate, and this degrades the sound quality noticeably, but explicitly mixing to a higher rate can resolve the artifacts.

What SDL_AUDIODRIVER is being used? Default or something specific?

What operating system?

You might get better quality by using a different SDL_AUDIODRIVER (for example on some Linux systems pulse is preferred).

This could be the wrong line of debugging though.On 04/07/2012 04:51 PM, apator10 at wp.pl wrote:

hi again

music playback sounds noisy
for every type I checked ( .mod, .xm, .ogg, .mp3, .mid )
even if I set CD quality parameters

first I thought that was getting 8 bit format set, or 11KHz freq
so I checked with Mix_QuerySpec();
and I got:
44,1KHz freq ( as requested )
AUDIO_S16SYS ( as requested )
2 channels ( as requested )

next I thought that I was using some down sampled music
( those artificial background noices sounds like it was the case )
but no, I play tested everyone of them using other players
and everything sounds fine

so does enybody know why music is so noisy?
any suggestions?

adam szwajnoch


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


LordHavoc
Author of DarkPlaces Quake1 engine - http://icculus.org/twilight/darkplaces
Co-designer of Nexuiz - http://alientrap.org/nexuiz
"War does not prove who is right, it proves who is left." - Unknown
"Any sufficiently advanced technology is indistinguishable from a rigged demo." - James Klass
"A game is a series of interesting choices." - Sid Meier

No, not really. The resampling actually cannot be noticed if you don’t
feed it killer samples (especially crafted samples that will produce
artifacts.)On 08/04/12 08:19, Forest Hale wrote:

Just a shot in the dark but perhaps you would get better quality by mixing to a higher rate like 96000Hz rather than 44100Hz, some sound drivers will resample your 44100Hz stream to 48000Hz rather
than to a higher rate, and this degrades the sound quality noticeably