summaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-05-22 00:07:23 -0700
committerChris Robinson <[email protected]>2013-05-22 00:07:23 -0700
commit2eb8a520d434f002928798fe2e08a6ff173dfa01 (patch)
tree9648a5d2ee050cbf71e17a35435b5bb86e95960c /Alc
parent0a07ed14c27a3b4269c024dc4827483d33b9c059 (diff)
Add casts to silence MSVC
Diffstat (limited to 'Alc')
-rw-r--r--Alc/alcChorus.c2
-rw-r--r--Alc/alcFlanger.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Alc/alcChorus.c b/Alc/alcChorus.c
index cf414bbd..ab46243d 100644
--- a/Alc/alcChorus.c
+++ b/Alc/alcChorus.c
@@ -100,7 +100,7 @@ static ALboolean ALchorusState_DeviceUpdate(ALchorusState *state, ALCdevice *Dev
static ALvoid ALchorusState_Update(ALchorusState *state, ALCdevice *Device, const ALeffectslot *Slot)
{
- ALfloat frequency = Device->Frequency;
+ ALfloat frequency = (ALfloat)Device->Frequency;
ALfloat rate;
ALint phase;
ALuint it;
diff --git a/Alc/alcFlanger.c b/Alc/alcFlanger.c
index b3f09018..88e2d625 100644
--- a/Alc/alcFlanger.c
+++ b/Alc/alcFlanger.c
@@ -100,7 +100,7 @@ static ALboolean ALflangerState_DeviceUpdate(ALflangerState *state, ALCdevice *D
static ALvoid ALflangerState_Update(ALflangerState *state, ALCdevice *Device, const ALeffectslot *Slot)
{
- ALfloat frequency = Device->Frequency;
+ ALfloat frequency = (ALfloat)Device->Frequency;
ALfloat rate;
ALint phase;
ALuint it;