Skip to content

Commit

Permalink
Merge pull request #112 from thearst3rd/sound-fix-maybe
Browse files Browse the repository at this point in the history
Use different workaround for sound pitch issue
  • Loading branch information
HumanGamer authored Dec 24, 2021
2 parents 04a09e2 + 3d8af26 commit 7bb3d49
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions engine/source/sfx/dsound/sfxDSVoice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ SFXDSVoice::SFXDSVoice( SFXDSBuffer *buffer,

SFXDSVoice::~SFXDSVoice()
{
setPitch(1.0f);
SAFE_RELEASE( mDSBuffer3D );
mBuffer->releaseVoice( &mDSBuffer );

Expand Down
1 change: 0 additions & 1 deletion engine/source/sfx/sfxSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ class SFXSystem
#define SFX_DELETE( source ) \
if ( source ) \
{ \
source->setPitch(1.0f); \
source->deleteObject(); \
source = NULL; \
} \
Expand Down

0 comments on commit 7bb3d49

Please sign in to comment.