VS2008 can't compile dr_mp3.h
This commit is contained in:
parent
0174001273
commit
705ad16d93
3 changed files with 10 additions and 0 deletions
|
@ -18,6 +18,8 @@
|
||||||
#define NLSOUND_AUDIO_DECODER_MP3_H
|
#define NLSOUND_AUDIO_DECODER_MP3_H
|
||||||
#include <nel/misc/types_nl.h>
|
#include <nel/misc/types_nl.h>
|
||||||
|
|
||||||
|
#if (NL_COMP_VC_VERSION > 90) /* VS2008 does not have stdint.h */
|
||||||
|
|
||||||
#include <nel/sound/audio_decoder.h>
|
#include <nel/sound/audio_decoder.h>
|
||||||
|
|
||||||
// disable drmp3_init_file()
|
// disable drmp3_init_file()
|
||||||
|
@ -91,6 +93,8 @@ public:
|
||||||
|
|
||||||
} /* namespace NLSOUND */
|
} /* namespace NLSOUND */
|
||||||
|
|
||||||
|
#endif /* (NL_COMP_VC_VERSION > 90) */
|
||||||
|
|
||||||
#endif // NLSOUND_AUDIO_DECODER_MP3_H
|
#endif // NLSOUND_AUDIO_DECODER_MP3_H
|
||||||
|
|
||||||
/* end of file */
|
/* end of file */
|
||||||
|
|
|
@ -103,10 +103,12 @@ IAudioDecoder *IAudioDecoder::createAudioDecoder(const std::string &type, NLMISC
|
||||||
{
|
{
|
||||||
return new CAudioDecoderVorbis(stream, loop);
|
return new CAudioDecoderVorbis(stream, loop);
|
||||||
}
|
}
|
||||||
|
#if (NL_COMP_VC_VERSION > 90) /* VS2008 does not have stdint.h */
|
||||||
else if (type_lower == "mp3")
|
else if (type_lower == "mp3")
|
||||||
{
|
{
|
||||||
return new CAudioDecoderMP3(stream, loop);
|
return new CAudioDecoderMP3(stream, loop);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
nlwarning("Music file type unknown: '%s'", type_lower.c_str());
|
nlwarning("Music file type unknown: '%s'", type_lower.c_str());
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
|
|
||||||
#include "stdsound.h"
|
#include "stdsound.h"
|
||||||
|
|
||||||
|
#if (NL_COMP_VC_VERSION > 90) /* VS2008 does not have stdint.h */
|
||||||
|
|
||||||
#include <nel/sound/audio_decoder_mp3.h>
|
#include <nel/sound/audio_decoder_mp3.h>
|
||||||
|
|
||||||
#define DR_MP3_IMPLEMENTATION
|
#define DR_MP3_IMPLEMENTATION
|
||||||
|
@ -221,4 +223,6 @@ void CAudioDecoderMP3::setLooping(bool loop)
|
||||||
|
|
||||||
} /* namespace NLSOUND */
|
} /* namespace NLSOUND */
|
||||||
|
|
||||||
|
#endif /* (NL_COMP_VC_VERSION > 90) */
|
||||||
|
|
||||||
/* end of file */
|
/* end of file */
|
||||||
|
|
Loading…
Reference in a new issue