Permalink
Browse files

treat oga as ogg files as well (ogg audio)

  • Loading branch information...
1 parent 5d474af commit d7b1daa4d64e99f3ec0fc31a6c3bf49926e5a82c @urkle urkle committed Feb 25, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 sources/OAL_Device.cpp
View
4 sources/OAL_Device.cpp
@@ -311,7 +311,7 @@ cOAL_Sample* cOAL_Device::LoadSample(const wstring& asFilename)
// Check file format and load the sample data according to it
wstring strExt = GetExtensionW(asFilename);
- if(strExt.compare(L"ogg") == 0 ) // Load an Ogg Vorbis sample
+ if(strExt.compare(L"ogg")==0 || strExt.compare(L"oga")==0) // Load an Ogg Vorbis sample
pSample = new cOAL_OggSample;
#ifdef WITH_ALUT
else if(strExt.compare(L"wav")==0) // Load a .WAV sample
@@ -346,7 +346,7 @@ cOAL_Stream* cOAL_Device::LoadStream(const wstring &asFilename)
wstring strExt = GetExtensionW(asFilename);
- if(strExt.compare(L"ogg")==0)
+ if(strExt.compare(L"ogg")==0 || strExt.compare(L"oga")==0)
{
pStream = new cOAL_OggStream;
}

0 comments on commit d7b1daa

Please sign in to comment.