From 59162228ef9bc50f72b08eb5139c11944263f74d Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 19 Oct 2016 22:14:05 -0400 Subject: [PATCH] Reduced mask for clarity. --- Components/AY38910/AY38910.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Components/AY38910/AY38910.cpp b/Components/AY38910/AY38910.cpp index 2a1018d0e..e58f94e55 100644 --- a/Components/AY38910/AY38910.cpp +++ b/Components/AY38910/AY38910.cpp @@ -137,7 +137,7 @@ void AY38910::get_samples(unsigned int number_of_samples, int16_t *target) // Channel volume is a simple selection: if the bit at 0x10 is set, use the envelope volume; otherwise use the lower four bits #define channel_volume(c) \ - ((_output_registers[c] >> 4)&1) * envelope_volume + (((_output_registers[c] >> 4)&1)^1) * (_output_registers[c]&0x1f) + ((_output_registers[c] >> 4)&1) * envelope_volume + (((_output_registers[c] >> 4)&1)^1) * (_output_registers[c]&0xf) int volumes[3] = { channel_volume(8),