Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hello! I am having issues with distorted sounds. Basically I want to use a Master, Sound and Music-volume. What I do is. I set the mastervolume by doing.. soundEngine->setSoundVolume( volume ); I preload my effects using this function: void PreloadEffect( void* data, int size, const char* effectName ) When I play an effect I do this.. ISound* newEffect = soundEngine->play2D( _preloadedEffects[ fileName ], loop, false, true ); For some reason. If mEffectVolume is anything except 1.0, the sound gets distorted and "clips". mEffectVolume goes between 0->1.0f. Anyone got any idea what might be the problem? Do I need to create new SoundSources every time I play a new effect? I was thinking maybe if I play the same sound multiple times simultaneously using this setup, setting the volume of one of them might affect the others? |
||||
|
Solved it myself.. A tip for others. Make sure you start effects paused and then resume them if you want to set their volume or other settings when you play them. Best Anton |
||||
|
Yes, that's the usual soluition, nice that you found it yourself :) |
|