Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement sam playback #64

Open
jdm opened this issue Feb 10, 2019 · 3 comments
Open

Implement sam playback #64

jdm opened this issue Feb 10, 2019 · 3 comments

Comments

@jdm
Copy link
Owner

jdm commented Feb 10, 2019

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?

@jdm
Copy link
Owner Author

jdm commented Mar 2, 2019

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.

@jdm
Copy link
Owner Author

jdm commented Mar 2, 2019

Also it's not clear what to put as the src_rate. Probably just need to figure out what a default frequency is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant