Open jdm opened 5 years ago
Given https://www.digitalmzx.net/wiki/index.php?title=SAM, it should be possible to use this code to convert the sample buffer to the target frequency, then use the resampled data in the audio callback. The trick is still doing the mixing manually.
Also it's not clear what to put as the src_rate. Probably just need to figure out what a default frequency is.
This requires mixing the openmpt playback with the sam buffers. Possibly there should be a vector of playing sams and every callback just mix as much of the sam data as possible with the openmpt data?