Bink SDK 1.5v

BinkSetFrameRate

The function BinkSetFrameRate overrides the Bink file's built-in frame rate.

void BinkSetFrameRate(
  U32 frame_rate,
  U32 frame_rate_div
);

In Parameters

frame_rate
Along with FrameRateDiv, specifies the frame rate to use. The frame rate is calculated as FrameRate/FrameRateDiv. So, for example, at 15 fps, FrameRate would be 15 and FrameRateDiv would be 1.
frame_rate_div
Specifies the frame rate divisor.

Discussion

This function allows you to alter the playback speed of a Bink file at run-time. If the Bink file has audio, the sound will be sped-up or slowed-down to maintain audio/video sync. To use this function, you first make this call and then you add the BINKFRAMERATE flag in your BinkOpen call.


Group: Bink API
Related Sections: NTSC and PAL on the Nintendo GameCube, NTSC and PAL on the Xbox
Related Functions: BinkOpen
Related Basic Types: BINK_OPEN_FLAGS, U32, void
Related Structures: BINKSUMMARY

For technical support, e-mail Bink1@radgametools.com
© Copyright 1994-2003 RAD Game Tools, Inc. All Rights Reserved.