gzdoom/snes_spc/demo/demo_util.h
Randy Heit 3bfcc5c09c - Removed lots of spc_* cvars that are no longer meaningful and changed
spc_amp from a x.4 fixed point number to a normal float.
- Switched SPC playback from the external SNESAPU.DLL to Blargg's LGPL
  snes_spc library. I've compiled it with the fast DSP rather than the
  highly accurate one, since I didn't notice a meaningful difference between
  the two in my limited testing. In short: SPC playback is now built in to
  ZDoom. You don't need to download anything extra to make it work, and it
  also works on Linux as well as Windows (though building with Linux is
  currently untested).
- Fixed: Stereo separation was calculated very wrongly when in 2D sound mode.


SVN r794 (trunk)
2008-03-11 22:17:57 +00:00

31 lines
688 B
C

/* General-purpose utilities used by demos */
/* snes_spc 0.9.0 */
#ifndef DEMO_UTIL_H
#define DEMO_UTIL_H
/* commonly used headers */
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#ifdef __cplusplus
extern "C" {
#endif
/* If str is not NULL, prints it and exits program, otherwise returns */
void error( const char* str );
/* Loads file and returns pointer to data in memory, allocated with malloc().
If size_out != NULL, sets *size_out to size of data. */
unsigned char* load_file( const char* path, long* size_out );
/* Writes data to file */
void write_file( const char* path, void const* in, long size );
#ifdef __cplusplus
}
#endif
#endif