Skip to content

Commit 6fead28

Browse files
jayarndtparamat
authored andcommittedDec 1, 2015
Remove unused OpenALSoundManager::m_can_vorbis and EXT_vorbis check
1 parent 5292ba7 commit 6fead28

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed
 

Diff for: ‎src/sound_openal.cpp

-10
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ class OpenALSoundManager: public ISoundManager
269269
OnDemandSoundFetcher *m_fetcher;
270270
ALCdevice *m_device;
271271
ALCcontext *m_context;
272-
bool m_can_vorbis;
273272
int m_next_id;
274273
std::map<std::string, std::vector<SoundBuffer*> > m_buffers;
275274
std::map<int, PlayingSound*> m_sounds_playing;
@@ -280,7 +279,6 @@ class OpenALSoundManager: public ISoundManager
280279
m_fetcher(fetcher),
281280
m_device(NULL),
282281
m_context(NULL),
283-
m_can_vorbis(false),
284282
m_next_id(1),
285283
m_is_initialized(false)
286284
{
@@ -295,14 +293,6 @@ class OpenALSoundManager: public ISoundManager
295293
return;
296294
}
297295

298-
if(alcIsExtensionPresent(m_device, "EXT_vorbis")){
299-
infostream<<"Audio: Vorbis extension present"<<std::endl;
300-
m_can_vorbis = true;
301-
} else{
302-
infostream<<"Audio: Vorbis extension NOT present"<<std::endl;
303-
m_can_vorbis = false;
304-
}
305-
306296
m_context = alcCreateContext(m_device, NULL);
307297
if(!m_context){
308298
error = alcGetError(m_device);

0 commit comments

Comments
 (0)
Please sign in to comment.