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

Note about the DirectShow AVI writer, and fix for BASS interception to correctly handle older versions of BASS.DLL #4

Open
wants to merge 36 commits into
base: master
Choose a base branch
from

Conversation

joncampbell123
Copy link

KKapture 1.02 has been unable to capture some older demos because the older demos use a version of BASS.DLL where the init function has four, rather than 5 parameters. However there is a BASS_GetVersion() function which can be used to auto-detect whether the demo uses the newer or older BASS.DLL to avoid this crash.

For whatever reason KKapture 1.01 and earlier had no problems with the same older demos.

This fixes "Liquid Wen", "Mikrostrange", and anything that uses the older BASS.DLL interface.

…e older BASS 1.x API because BASS_Init() changed the number of parameters. Use BASS_GetVersion() to automatically detect older vs newer BASS_Init() so interception works in both cases.
…apture even if the version of VS does not have the DirectShow SDK
allow KKapture to compile whether you use
VS2010 or VS2022.
…o KKapture interface. Instead of intercepting a demo, KKapture directly calls the AVI writer and generates a test pattern, then exits
…ted writer is nice but slight audio errors are audible between segments when joined together in an editor
…ter to 0xDDDDDDDD on delete and that causes the process frame function to be called with invalid pointers that crash. Fix possible case where wave out frame processing can get stuck in an infinite loop.
…ames so that audio and timing can be more precise, and then write a video frame once every video frame. Microframes of course have a fixed integer relationship to video frames
…ls (when demos present a dialog box), fix it
…on controls, fix IDirectSound GetCaps(), set IDirectSoundBuffer WriteCursor() to play position plus 15ms as documented by Microsoft for old emulated DirectSound devices, fix IDirectSoundBuffer and waveOutWrite to round buffer size down to a multiple of nBlockAlign to avoid audio glitches whenever demos use some odd size that is not a multiple (Wonder by Sunflower)
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

Successfully merging this pull request may close these issues.

1 participant