Skip to content

Commit

Permalink
FMOD: Fixed sample loading
Browse files Browse the repository at this point in the history
The OPENUSER flag requires a callback that provides the
actual sample data. Instead, we'll use OPENRAW to load the
sample data provided by the engine.
  • Loading branch information
skyjake committed Dec 5, 2011
1 parent 2ca210f commit bd4947e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/plugins/fmod/src/fmod_sfx.cpp
Expand Up @@ -171,7 +171,7 @@ void DS_SFX_Load(sfxbuffer_t* buf, struct sfxsample_s* sample)
FMOD_RESULT result;
result = fmodSystem->createSound(reinterpret_cast<const char*>(sample->data),
(buf->flags & SFXBF_3D? FMOD_3D : 0) |
FMOD_OPENMEMORY | FMOD_OPENUSER, &params,
FMOD_OPENMEMORY | FMOD_OPENRAW, &params,
&info.sound);
DSFMOD_ERRCHECK(result);
DSFMOD_TRACE("DS_SFX_Load: created Sound " << info.sound);
Expand Down

0 comments on commit bd4947e

Please sign in to comment.