PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
upsamplers.h File Reference
+ This graph shows which files directly or indirectly include this file:

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)
 

Detailed Description

audsrv IOP-side upsamplers

Definition in file upsamplers.h.


Data Structure Documentation

◆ upsample_t

struct upsample_t

Definition at line 18 of file upsamplers.h.

Data Fields
short * left
short * right
const unsigned char * src

Typedef Documentation

◆ upsampler_t

typedef int(* upsampler_t) (struct upsample_t *)

Definition at line 25 of file upsamplers.h.

Function Documentation

◆ find_upsampler()

upsampler_t find_upsampler ( int  freq,
int  bits,
int  channels 
)

Returns an upsampler from a specified format to SPU2's native

Parameters
freqfrequency used
bitsbits per sample
channelsnumber of audio channels
Returns
a function to be used for upsampling, null if not found

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().