Skip to content

Commit

Permalink
Remove unused OpenALSoundManager::m_can_vorbis and EXT_vorbis check
Browse files Browse the repository at this point in the history
  • Loading branch information
jayarndt authored and paramat committed Dec 1, 2015
1 parent 5292ba7 commit 6fead28
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/sound_openal.cpp
Expand Up @@ -269,7 +269,6 @@ class OpenALSoundManager: public ISoundManager
OnDemandSoundFetcher *m_fetcher;
ALCdevice *m_device;
ALCcontext *m_context;
bool m_can_vorbis;
int m_next_id;
std::map<std::string, std::vector<SoundBuffer*> > m_buffers;
std::map<int, PlayingSound*> m_sounds_playing;
Expand All @@ -280,7 +279,6 @@ class OpenALSoundManager: public ISoundManager
m_fetcher(fetcher),
m_device(NULL),
m_context(NULL),
m_can_vorbis(false),
m_next_id(1),
m_is_initialized(false)
{
Expand All @@ -295,14 +293,6 @@ class OpenALSoundManager: public ISoundManager
return;
}

if(alcIsExtensionPresent(m_device, "EXT_vorbis")){
infostream<<"Audio: Vorbis extension present"<<std::endl;
m_can_vorbis = true;
} else{
infostream<<"Audio: Vorbis extension NOT present"<<std::endl;
m_can_vorbis = false;
}

m_context = alcCreateContext(m_device, NULL);
if(!m_context){
error = alcGetError(m_device);
Expand Down

0 comments on commit 6fead28

Please sign in to comment.