Frictional Games Forum (read-only)
Doppler effect like error when playing custom .OGG - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Doppler effect like error when playing custom .OGG (/thread-17080.html)



Doppler effect like error when playing custom .OGG - Ironbard - 07-18-2012

I'm getting a strange "anomaly" when using this code and a custom .ogg:
Code:
PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);


For some reason the music plays from a certain direction. For example when I start my map, I can hear the sound coming from behind me - and if I turn around ingame, I sort of get the doppler effect.

It's got me completely baffled. Ideas anyone?


RE: Doppler effect like error when playing custom .OGG - palistov - 07-18-2012

Are you using the church floor? That has a sort of echo effect in its material properties.


RE: Doppler effect like error when playing custom .OGG - Adny - 07-18-2012

(07-18-2012, 10:21 PM)palistov Wrote: Are you using the church floor? That has a sort of echo effect in its material properties.
So does the "gigantic stone" material in the dungeon set.


RE: Doppler effect like error when playing custom .OGG - Ironbard - 07-19-2012

I'm not using any of those models. But I think I found the flaw, my custom music was mono, I thought perhaps it has to be stereo - so I converted the file. Seems to work fine now. Will have to check it more thoroughly though.