Skip to content
This repository
Browse code

treat oga as ogg files as well (ogg audio)

  • Loading branch information...
commit d7b1daa4d64e99f3ec0fc31a6c3bf49926e5a82c 1 parent 5d474af
Edward Rudd urkle authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 sources/OAL_Device.cpp
4 sources/OAL_Device.cpp
@@ -311,7 +311,7 @@ cOAL_Sample* cOAL_Device::LoadSample(const wstring& asFilename)
311 311
312 312 // Check file format and load the sample data according to it
313 313 wstring strExt = GetExtensionW(asFilename);
314   - if(strExt.compare(L"ogg") == 0 ) // Load an Ogg Vorbis sample
  314 + if(strExt.compare(L"ogg")==0 || strExt.compare(L"oga")==0) // Load an Ogg Vorbis sample
315 315 pSample = new cOAL_OggSample;
316 316 #ifdef WITH_ALUT
317 317 else if(strExt.compare(L"wav")==0) // Load a .WAV sample
@@ -346,7 +346,7 @@ cOAL_Stream* cOAL_Device::LoadStream(const wstring &asFilename)
346 346
347 347 wstring strExt = GetExtensionW(asFilename);
348 348
349   - if(strExt.compare(L"ogg")==0)
  349 + if(strExt.compare(L"ogg")==0 || strExt.compare(L"oga")==0)
350 350 {
351 351 pStream = new cOAL_OggStream;
352 352 }

0 comments on commit d7b1daa

Please sign in to comment.
Something went wrong with that request. Please try again.