Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Functions | Variables
util.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "vadpcm.h"

Functions

static u32 getshort (FILE *ifile)
 
u32 readbits (u32 nbits, FILE *ifile)
 
charReadPString (FILE *ifile)
 
s32 lookupMarker (u32 *sample, s16 loopPoint, Marker *markers, s32 nmarkers)
 
ALADPCMloopreadlooppoints (FILE *ifile, s16 *nloops)
 

Variables

static s32 input_word = 0
 
static s32 in_bit_pos = -1
 

Function Documentation

◆ getshort()

static u32 getshort ( FILE *  ifile)
static

◆ lookupMarker()

s32 lookupMarker ( u32 sample,
s16  loopPoint,
Marker markers,
s32  nmarkers 
)

◆ readbits()

u32 readbits ( u32  nbits,
FILE *  ifile 
)

◆ readlooppoints()

ALADPCMloop* readlooppoints ( FILE *  ifile,
s16 nloops 
)

◆ ReadPString()

char* ReadPString ( FILE *  ifile)

Variable Documentation

◆ in_bit_pos

s32 in_bit_pos = -1
static

◆ input_word

s32 input_word = 0
static