1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

Reduced mask for clarity.

This commit is contained in:
Thomas Harte 2016-10-19 22:14:05 -04:00
parent 319d7c2b12
commit 59162228ef

View File

@ -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),