mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-18 10:21:42 +00:00
3bfcc5c09c
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)
31 lines
688 B
C
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
|