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

Samplerate is not 32000?! #111

Open
JustMeDaFaq opened this issue Apr 5, 2019 · 4 comments
Open

Samplerate is not 32000?! #111

JustMeDaFaq opened this issue Apr 5, 2019 · 4 comments

Comments

@JustMeDaFaq
Copy link

Hey,

the outputted samplerate is not 32000?!
Cant acutally get it to work to play with the right speed, tho, had no issue with TGBDual Core for example

@JustMeDaFaq
Copy link
Author

JustMeDaFaq commented Apr 5, 2019

EDIT: Just measured of much values (of type short) il get per frame.

One frame its 640, than next frame 1280 and again 640 and so on on the next frames :S

EDIT2: Cutting the first 640 from those frames where im getting 1280 short values works! :)

@negativeExponent
Copy link
Contributor

i dont know why vba_next and any other vba-based gba are sending audio at a rate of about 1/100 of a second. https://github.com/libretro/vba-next/blob/master/src/sound.cpp#L50
Changing this to 280896 cycles will send audio at about 1 frame rate which should give about 1074 samples per frame, instead of partial samples, which should even be better for libretro.

@negativeExponent
Copy link
Contributor

RE: this might need some bit of timing tweaks. audio and video should return in retro_run at the same time aka similar to beetle gba implementation.

might work with just the audio sampling cycle rate change as i've stated above

@LibretroAdmin
Copy link
Contributor

@negativeExponent Pushed this change through -
38a855b

let me know if it improves things on your end

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

3 participants