3D Audio GSoC:

MSVC compile fixes.
This commit is contained in:
Joerg Mueller
2011-07-14 05:56:47 +00:00
parent 49d01fb30d
commit d838d82151
2 changed files with 5 additions and 1 deletions

View File

@@ -60,7 +60,7 @@ void AUD_ChannelMapperReader::setChannels(AUD_Channels channels)
void AUD_ChannelMapperReader::setMonoAngle(float angle)
{
if(std::isnan(angle))
if(angle != angle)
angle = 0;
m_mono_angle = angle;
if(m_source_channels == AUD_CHANNELS_MONO)

View File

@@ -43,6 +43,10 @@
#include <cmath>
#include <limits>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
typedef enum
{
AUD_RENDER_DISTANCE = 0x01,