mirror of
https://github.com/minetest/minetest.git
synced 2024-11-10 01:33:46 +01:00
Remove unused OpenALSoundManager::m_can_vorbis and EXT_vorbis check
This commit is contained in:
parent
5292ba7391
commit
6fead2818a
@ -269,7 +269,6 @@ private:
|
|||||||
OnDemandSoundFetcher *m_fetcher;
|
OnDemandSoundFetcher *m_fetcher;
|
||||||
ALCdevice *m_device;
|
ALCdevice *m_device;
|
||||||
ALCcontext *m_context;
|
ALCcontext *m_context;
|
||||||
bool m_can_vorbis;
|
|
||||||
int m_next_id;
|
int m_next_id;
|
||||||
std::map<std::string, std::vector<SoundBuffer*> > m_buffers;
|
std::map<std::string, std::vector<SoundBuffer*> > m_buffers;
|
||||||
std::map<int, PlayingSound*> m_sounds_playing;
|
std::map<int, PlayingSound*> m_sounds_playing;
|
||||||
@ -280,7 +279,6 @@ public:
|
|||||||
m_fetcher(fetcher),
|
m_fetcher(fetcher),
|
||||||
m_device(NULL),
|
m_device(NULL),
|
||||||
m_context(NULL),
|
m_context(NULL),
|
||||||
m_can_vorbis(false),
|
|
||||||
m_next_id(1),
|
m_next_id(1),
|
||||||
m_is_initialized(false)
|
m_is_initialized(false)
|
||||||
{
|
{
|
||||||
@ -295,14 +293,6 @@ public:
|
|||||||
return;
|
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);
|
m_context = alcCreateContext(m_device, NULL);
|
||||||
if(!m_context){
|
if(!m_context){
|
||||||
error = alcGetError(m_device);
|
error = alcGetError(m_device);
|
||||||
|
Loading…
Reference in New Issue
Block a user