Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
win32: increase sound buffer to allow at least one frame (fixes #794)
- Loading branch information
d29098c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bearoso: the MINIMUM_BUFFER_SIZE in apu.cpp is only enough for one frame in NTSC, should we increase it? Then again different rates will require different minimum values. Maybe we simply specify the minimum in ms?
d29098c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The buffer size is always relative to the 32040 the SNES puts out, not the final resampled rate.
But increasing this won't hurt anything. The port is supposed to take all the audio every time the callback is called. If it's not ready, then it should either wait (sound sync) or just clear the buffer. So theoretically, it should only need a scanline's worth of buffer space. I'll have to look at the drivers and see why they're accumulating data.
d29098c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the formula in S9xInitSound then use a fixed rate?
The problem here was that avi recording only pulls samples after every frame, when it can write one complete video and audio frame. This worked for NTSC, but for PAL the buffer was smaller than the samples it tried to pull so it was always getting zeroes.
d29098c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello friends, how to use this and solve the problem of PAL game videos that are muted when being extracted from Snes9x?
d29098c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use the latest nightly, linked on the main repository page. For windows click on the corresponding job name, then on artifacts.
d29098c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I downloaded the build you made available, already with this problem of PAL games corrected. Thank you very much for making this correction. Now I can record PAL games without worrying.