I know this is not really graphics related,
but since it is DirectX-related it put it here.
I hope it is okey.
I am trying to use Microsoft.DirectX.AudioVideoPlayback
to play a mp3-file. The code in my test-application
is looking like this:
Audio a = new Audio(@"D:\Eat.mp3");
a.Play();
AudioVideoPlayback is playing the mp3-file, but for
some reason it sound glitchy and distorted, maybe
like it is played to loud. However, even if I am
lowering the volume (a.Volume = -8000) the same
problem occurs. The mp3-file is played more silent
however.
I am testing with a lot of differens mp3-files.
Some are sounding better than other but in the end
they all sound distorted and glitchy in the same
way. It appears that mp3s with really high bitrates
are worst sounding and the one's with lower bitrates
are a better sounding. However, all mp3s are a bit
distorted.
It is nothing wrong with the mp3-files. They are
sounding nice in winamp, deliplayer, VLC, CoolEdit
and WMP.
I also thought that AudioVideoPlayback, in some was,
was bad way to play mp3-files so I tried to use the
good old MCI instead (importing winmm.dll and sending
mci-messages). The MCI is playing my mp3-files, however
they are crippled and distorted in exactly the same
way as with AudioVideoPlayback.
Anyone has any clues on what is going on and how to fix this?
It is very annoying.
I'm using SharpDevelope and my soundcard is a standard
SB Audigy2, if that helps anyone.
Please help! You're my only hope!