summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/nile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/nile.cpp')
-rw-r--r--src/devices/sound/nile.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/devices/sound/nile.cpp b/src/devices/sound/nile.cpp
index 83e6b4316a7..345c88f2bf0 100644
--- a/src/devices/sound/nile.cpp
+++ b/src/devices/sound/nile.cpp
@@ -160,11 +160,10 @@ void nile_device::sound_stream_update(sound_stream &stream, std::vector<read_str
}
}
mixp = &mix[0];
- constexpr stream_buffer::sample_t sample_scale = 1.0 / (32768.0 * 16.0);
for (i = 0; i < outputs[0].samples(); i++)
{
- outputs[0].put(i, stream_buffer::sample_t(*mixp++) * sample_scale);
- outputs[1].put(i, stream_buffer::sample_t(*mixp++) * sample_scale);
+ outputs[0].put_int(i, *mixp++, 32768 * 16);
+ outputs[1].put_int(i, *mixp++, 32768 * 16);
}
}