aboutsummaryrefslogtreecommitdiff
path: root/engines/adl
diff options
context:
space:
mode:
Diffstat (limited to 'engines/adl')
-rw-r--r--engines/adl/sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/adl/sound.cpp b/engines/adl/sound.cpp
index 17f4955a12..63eea45953 100644
--- a/engines/adl/sound.cpp
+++ b/engines/adl/sound.cpp
@@ -55,7 +55,7 @@ Speaker::Speaker(int sampleRate) :
void Speaker::startTone(double freq) {
_halfWaveLen = _halfWaveRem = doubleToFrac(_rate / freq / 2);
- if (_halfWaveLen < FRAC_ONE) {
+ if (_halfWaveLen < (frac_t)FRAC_ONE) {
// Tone out of range at this sample rate
stopTone();
}
@@ -70,7 +70,7 @@ void Speaker::generateSamples(int16 *buffer, int numSamples) {
int offset = 0;
while (offset < numSamples) {
- if (_halfWaveRem >= 0 && _halfWaveRem < FRAC_ONE) {
+ if (_halfWaveRem >= 0 && _halfWaveRem < (frac_t)FRAC_ONE) {
// Rising/falling edge
// Switch level
_curSample = ~_curSample;