Since channel_masks is an unsigned char, we should set the value

to 0xFF, not 0xFFFFFFFF.
This commit is contained in:
gameblabla 2019-07-16 13:28:15 +02:00
parent 77c9c68924
commit da58d4a159
No known key found for this signature in database
GPG Key ID: B24EFBB23B5F76CB

View File

@ -71,8 +71,8 @@ uint32_t sn76489_reset(sn76489_t *psg, float clock, float sample_rate, uint16_t
psg->output_channels = 0xFF; /* All Channels, both sides */
memset(psg->channel_masks[0], 0xFFFFFFFF, 4 * sizeof(uint32_t));
memset(psg->channel_masks[1], 0xFFFFFFFF, 4 * sizeof(uint32_t));
memset(psg->channel_masks[0], 0xFF, 4 * sizeof(uint32_t));
memset(psg->channel_masks[1], 0xFF, 4 * sizeof(uint32_t));
psg->clocks_per_sample = clock / 16.0f / sample_rate;