PS2SDK
PS2 Homebrew Libraries
|
Go to the source code of this file.
Data Structures | |
struct | upsample_t |
Typedefs | |
typedef struct upsample_t | upsample_t |
typedef int(* | upsampler_t) (struct upsample_t *) |
Functions | |
upsampler_t | find_upsampler (int freq, int bits, int channels) |
audsrv IOP-side upsamplers
Definition in file upsamplers.h.
struct upsample_t |
Definition at line 18 of file upsamplers.h.
Data Fields | ||
---|---|---|
short * | left | |
short * | right | |
const unsigned char * | src |
typedef int(* upsampler_t) (struct upsample_t *) |
Definition at line 25 of file upsamplers.h.
upsampler_t find_upsampler | ( | int | freq, |
int | bits, | ||
int | channels | ||
) |
Returns an upsampler from a specified format to SPU2's native
freq | frequency used |
bits | bits per sample |
channels | number of audio channels |
Will return a function to convert source audio to Playstation's native. Note a very limited selection of upsamplers are available, only the most commonly used.
Definition at line 636 of file upsamplers.c.
References entry_t::bits, entry_t::channels, entry_t::freq, and upsamplers.
Referenced by audsrv_format_ok(), cdda_procedure(), and play_thread().