mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2025-01-30 23:00:16 -05:00
Improve sound
This commit is contained in:
parent
dea0c87f33
commit
f7072f7158
@ -181,7 +181,7 @@ uint16_t audioPos = 0;
|
||||
|
||||
static inline uint8_t mixSamples(uint8_t sample1, uint8_t sample2)
|
||||
{
|
||||
return (((uint16_t) sample1) + ((uint16_t) sample2)) / 2;
|
||||
return (sample1 >> 1) + (sample2 >> 1);
|
||||
}
|
||||
|
||||
uint8_t musicOn = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user