Added pitch

This commit is contained in:
Stiffly
2015-09-23 15:15:43 +02:00
parent 346ee13dd5
commit e8e74eb506
2 changed files with 3 additions and 19 deletions
+1
View File
@@ -89,6 +89,7 @@ bool dd::Systems::SoundSystem::OnPlaySound(const dd::Events::PlaySound &event)
//Sound settings
alSourcef(source, AL_GAIN, event.volume);
alSourcef(source, AL_PITCH, event.pitch);
if (event.loop) {
alSourcei(source, AL_LOOPING, AL_TRUE);
}