
Using the Bink DLL to decode a Bink file operates using the following steps:

BINK VIDEO TOOLS CODE
Returns: MPC's code comments indicate that this function does return aĭescription: BinkNextFrame signals the playback engine to advance the Bink file to the next frame.ĭescription: BinkClose gracefully closes a Bink file and releases any allocated resources. Returns: No known return value as MPC does not check for one.ĭescription: BinkDoFrame processes the next frame in the Bink file. FrameNumber: The frame number where the stream should be positioned to.Bink: A pointer to the BinkStruct returned by BinkOpen.Void BinkGoto(BinkStruct *Bink, UINT32 FrameNumber, UINT32 unknown) ĭescription: BinkGoto signals the playback engine to reposition the Bink file to a Returns: A pointer to a BinkStruct that will be used for playing the Bink file. Flags: The meaning of all the flags is unclear, but MPC calls BinkOpen with 0x00800000.BinkFile: A Windows file HANDLE that refers to the Bink file to be read.Returns: 0 if the function failed, non-zero on success.īinkStruct *BinkOpen(HANDLE BinkFile, UINT32 Flags) ĭescription: BinkOpen opens and initializes a Bink file for playback. pDS: A pointer to an IDirectSound structure.BinkOpenDirectSound must meet the qualifications to be a SOUND_FUNC (contrived for this description). MPC passes in BinkOpenDirectSound as the parameter. SoundFunction: This appears to be the function that will be invoked in order to playback the audio.Int BinkSetSoundSystem(SOUND_FUNC SoundFunction, IDirectSound *pDS) ĭescription: BinkSetSoundSystem initializes the audio playback subsystem. MPC is interested in the following functions exported by the Bink DLL: This document will refer to this structure as the BinkStruct. Some games that use RAD Game Tools Bink files for their multimedia files distribute a handy Win32 DLL called binkw32.dll.Īccording to the Media Player Classic (MPC) application, the various Bink file manipulation functions pass around a structure with the following layout (all multi-byte numbers are native endian pointers are 32-bit memory addresses):
