Skip to content

Commit

Permalink
bink: Bump header to 1.9i to better match binary version
Browse files Browse the repository at this point in the history
  • Loading branch information
dimhotepus committed Sep 30, 2024
1 parent d640714 commit 6d2c154
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
1 change: 1 addition & 0 deletions binkw/binkw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ HBINK RADEXPLINK BinkOpen(const char PTR4*, U32) { return 0; }
void RADEXPLINK BinkGetFrameBuffersInfo(HBINK, BINKFRAMEBUFFERS*) {}
void RADEXPLINK BinkRegisterFrameBuffers(HBINK, BINKFRAMEBUFFERS*) {}
S32 RADEXPLINK BinkDoFrame(HBINK) { return 0; }
S32 RADEXPLINK BinkDoFramePlane(HBINK, U32) { return 0; }
void RADEXPLINK BinkNextFrame(HBINK) {}
S32 RADEXPLINK BinkWait(HBINK) { return 0; }
void RADEXPLINK BinkClose(HBINK) {}
Expand Down
22 changes: 16 additions & 6 deletions deps/bink/bink.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

#define BINKMAJORVERSION 1
#define BINKMINORVERSION 9
#define BINKSUBVERSION 3
#define BINKVERSION "1.9c"
#define BINKDATE "2008-01-15"
#define BINKSUBVERSION 9
#define BINKVERSION "1.9i"
#define BINKDATE "2008-10-31"

#ifndef __RADRES__

Expand Down Expand Up @@ -90,14 +90,12 @@ typedef struct BINKSND {
U8 PTR4* sndend; // end of the sound buffer
UINTa sndcomp; // sound compression handle

U8 PTR4* sndreadpos; // current read position (needs to be after the pad)
U8 PTR4* sndreadpos; // current read position

#if defined( BINK_SPU_PROCESS )
struct binksnd_hide // put variables that we don't want to accidentally
{ // use on the spu into a structure
#endif
U32 padding;

U32 orig_freq;
U32 freq;
S32 bits,chans;
Expand Down Expand Up @@ -484,6 +482,13 @@ RADEXPFUNC void RADEXPLINK BinkLoadUnloadConverter( U32 surfaces, S32 inout );
#define BINKGETKEYCLOSEST 2
#define BINKGETKEYNOTEQUAL 128

#define BINKDOFRAMEY 1
#define BINKDOFRAMEA 2
#define BINKDOFRAMECRCB 4
#define BINKDOFRAMESTART 256
#define BINKDOFRAMEEND 512


//=======================================================================

#ifdef __RADMAC__
Expand All @@ -509,6 +514,7 @@ RADEXPFUNC HBINK RADEXPLINK BinkOpen(const char PTR4* name,U32 flags);
RADEXPFUNC void RADEXPLINK BinkGetFrameBuffersInfo( HBINK bink, BINKFRAMEBUFFERS * fbset );
RADEXPFUNC void RADEXPLINK BinkRegisterFrameBuffers( HBINK bink, BINKFRAMEBUFFERS * fbset );
RADEXPFUNC S32 RADEXPLINK BinkDoFrame(HBINK bnk);
RADEXPFUNC S32 RADEXPLINK BinkDoFramePlane(HBINK bnk,U32 which_planes);
RADEXPFUNC void RADEXPLINK BinkNextFrame(HBINK bnk);
RADEXPFUNC S32 RADEXPLINK BinkWait(HBINK bnk);
RADEXPFUNC void RADEXPLINK BinkClose(HBINK bnk);
Expand Down Expand Up @@ -609,6 +615,10 @@ RADEXPFUNC S32 RADEXPLINK BinkControlPlatformFeatures( S32 use, S32 dont_use );
RADEXPFUNC BINKSNDOPEN RADEXPLINK BinkOpenXAudio(UINTa param); // don't call directly
#define BinkSoundUseXAudio() BinkSetSoundSystem(BinkOpenXAudio,0)

RADEXPFUNC BINKSNDOPEN RADEXPLINK BinkOpenXAudio2(UINTa param); // don't call directly
#define BinkSoundUseXAudio2(IXAudio2_ptr) BinkSetSoundSystem(BinkOpenXAudio2,(UINTa)IXAudio2_ptr)


#endif


Expand Down
3 changes: 2 additions & 1 deletion deps/bink/radbase.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
#define __RADBIGENDIAN__
#define RADINLINE inline
#define RADRESTRICT __restrict
#define __RADALTIVEC__
#endif

#ifndef __LP32__
Expand Down Expand Up @@ -510,7 +511,7 @@
#define U32 unsigned int
#define S32 signed int
// Pointers are 32 bits.
#if (_MSC_VER >= 1300 && _Wp64)
#if ( ( defined(_MSC_VER) && (_MSC_VER >= 1300 ) ) && ( defined(_Wp64) && ( _Wp64 ) ) )
#define INTADDR __w64 long
#define UINTADDR __w64 unsigned long

Expand Down
Binary file modified deps/bink/winhelp/bink.chm
Binary file not shown.
Binary file removed deps/bink/winhelp/bink.chw
Binary file not shown.

0 comments on commit 6d2c154

Please sign in to comment.