Well, for some reason, while using the StdCall version of Fmod whenever I set the pan to 0 or to 255 the sound distorts and the spectrum stops working! But it works perfectly when using the non-StdCall version. Maybe a bug?