mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
core, revisit Pico sound handling
This commit is contained in:
parent
ba2b97dc24
commit
e348af76ec
3 changed files with 37 additions and 12 deletions
|
@ -208,10 +208,9 @@ void SN76496Update(short *buffer, int length, int stereo)
|
|||
|
||||
if (out > MAX_OUTPUT * STEP) out = MAX_OUTPUT * STEP;
|
||||
|
||||
if ((out /= STEP)) // will be optimized to shift; max 0x4800 = 18432
|
||||
*buffer += out;
|
||||
if(stereo) buffer+=2; // only left for stereo, to be mixed to right later
|
||||
else buffer++;
|
||||
out /= STEP; // will be optimized to shift; max 0x4800 = 18432
|
||||
*buffer++ += out;
|
||||
if (stereo) *buffer++ += out;
|
||||
|
||||
length--;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue