mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
audio improvement wip
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@33 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
f80d67e12b
commit
85f8e92973
11 changed files with 65 additions and 27 deletions
|
@ -227,6 +227,7 @@ void sound_clear(void)
|
|||
|
||||
int sound_render(int offset, int length)
|
||||
{
|
||||
int buf32_updated = 0;
|
||||
int *buf32 = PsndBuffer+offset;
|
||||
int stereo = (PicoOpt & 8) >> 3;
|
||||
// emulating CD && PCM option enabled && PCM chip on && have enabled channels
|
||||
|
@ -248,11 +249,15 @@ int sound_render(int offset, int length)
|
|||
|
||||
// Add in the stereo FM buffer
|
||||
if (PicoOpt & 1)
|
||||
YM2612UpdateOne(buf32, length, stereo, 1);
|
||||
buf32_updated = YM2612UpdateOne(buf32, length, stereo, 1);
|
||||
|
||||
//printf("active_chs: %02x\n", buf32_updated);
|
||||
|
||||
// CD: PCM sound
|
||||
if (do_pcm)
|
||||
if (do_pcm) {
|
||||
pcm_update(buf32, length, stereo);
|
||||
//buf32_updated = 1;
|
||||
}
|
||||
|
||||
// CD: CDDA audio
|
||||
if ((PicoMCD & 1) && (PicoOpt & 0x800))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue