Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 16 additions & 17 deletions project/src/ExternalInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,20 +423,19 @@ namespace lime {
bytes.Set (data);
resource = Resource (&bytes);

#ifdef LIME_SDL_SOUND
if (SDLSound::Decode (&resource, &audioBuffer)) {
if (WAV::Decode (&resource, &audioBuffer)) {

return audioBuffer.Value (buffer);

}
#endif


if (WAV::Decode (&resource, &audioBuffer)) {
#ifdef LIME_SDL_SOUND
if (SDLSound::Decode (&resource, &audioBuffer)) {

return audioBuffer.Value (buffer);

}
#endif

#ifdef LIME_OGG
if (OGG::Decode (&resource, &audioBuffer)) {
Expand All @@ -455,19 +454,19 @@ namespace lime {

Resource resource = Resource (data);

#ifdef LIME_SDL_SOUND
if (SDLSound::Decode (&resource, buffer)) {
if (WAV::Decode (&resource, buffer)) {

return buffer;

}
#endif

if (WAV::Decode (&resource, buffer)) {
#ifdef LIME_SDL_SOUND
if (SDLSound::Decode (&resource, buffer)) {

return buffer;

}
#endif

#ifdef LIME_OGG
if (OGG::Decode (&resource, buffer)) {
Expand All @@ -490,19 +489,19 @@ namespace lime {

resource = Resource (val_string (data));

#ifdef LIME_SDL_SOUND
if (SDLSound::Decode (&resource, &audioBuffer)) {
if (WAV::Decode (&resource, &audioBuffer)) {

return audioBuffer.Value (buffer);

}
#endif

if (WAV::Decode (&resource, &audioBuffer)) {
#ifdef LIME_SDL_SOUND
if (SDLSound::Decode (&resource, &audioBuffer)) {

return audioBuffer.Value (buffer);

}
#endif

#ifdef LIME_OGG
if (OGG::Decode (&resource, &audioBuffer)) {
Expand All @@ -521,19 +520,19 @@ namespace lime {

Resource resource = Resource (data ? hl_to_utf8 ((const uchar*)data->bytes) : NULL);

#ifdef LIME_SDL_SOUND
if (SDLSound::Decode (&resource, buffer)) {
if (WAV::Decode (&resource, buffer)) {

return buffer;

}
#endif

if (WAV::Decode (&resource, buffer)) {
#ifdef LIME_SDL_SOUND
if (SDLSound::Decode (&resource, buffer)) {

return buffer;

}
#endif

#ifdef LIME_OGG
if (OGG::Decode (&resource, buffer)) {
Expand Down