aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rw-r--r--audio/decoders/xa.cpp4
-rw-r--r--audio/mods/protracker.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/audio/decoders/xa.cpp b/audio/decoders/xa.cpp
index b18673411b..15a7439abf 100644
--- a/audio/decoders/xa.cpp
+++ b/audio/decoders/xa.cpp
@@ -83,7 +83,7 @@ int XAStream::readBuffer(int16 *buffer, const int numSamples) {
_samples[i] = _samples[i] + _s1 * s_xaDataTable[_predictor][0] + _s2 * s_xaDataTable[_predictor][1];
_s2 = _s1;
_s1 = _samples[i];
- int16 d = (int) (_samples[i] + 0.5);
+ int16 d = (int)(_samples[i] + 0.5);
buffer[samplesDecoded] = d;
samplesDecoded++;
_samplesRemaining--;
@@ -129,7 +129,7 @@ int XAStream::readBuffer(int16 *buffer, const int numSamples) {
_samples[i] = _samples[i] + _s1 * s_xaDataTable[_predictor][0] + _s2 * s_xaDataTable[_predictor][1];
_s2 = _s1;
_s1 = _samples[i];
- int16 d = (int) (_samples[i] + 0.5);
+ int16 d = (int)(_samples[i] + 0.5);
buffer[samplesDecoded] = d;
samplesDecoded++;
}
diff --git a/audio/mods/protracker.cpp b/audio/mods/protracker.cpp
index d486f02e89..2838b58d61 100644
--- a/audio/mods/protracker.cpp
+++ b/audio/mods/protracker.cpp
@@ -328,7 +328,7 @@ void ProtrackerStream::updateRow() {
_speed = exy;
} else {
_bpm = exy;
- setInterruptFreq((int) (getRate() / (_bpm * 0.4)));
+ setInterruptFreq((int)(getRate() / (_bpm * 0.4)));
}
break;
default: