RetroArch
Classes | Macros | Typedefs | Functions | Variables
psp_audio.c File Reference
#include <stdint.h>
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#include <rthreads/rthreads.h>
#include <queues/fifo_queue.h>
#include <pspkernel.h>
#include <pspaudio.h>
#include "../audio_driver.h"
Include dependency graph for psp_audio.c:

Classes

struct  psp_audio
 

Macros

#define AUDIO_OUT_COUNT   512u
 
#define AUDIO_BUFFER_SIZE   (1u<<13u)
 
#define AUDIO_BUFFER_SIZE_MASK   (AUDIO_BUFFER_SIZE-1)
 

Typedefs

typedef struct psp_audio psp_audio_t
 

Functions

static void audioMainLoop (void *data)
 
static voidpsp_audio_init (const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_rate)
 
static void psp_audio_free (void *data)
 
static ssize_t psp_audio_write (void *data, const void *buf, size_t size)
 
static bool psp_audio_alive (void *data)
 
static bool psp_audio_stop (void *data)
 
static bool psp_audio_start (void *data, bool is_shutdown)
 
static void psp_audio_set_nonblock_state (void *data, bool toggle)
 
static bool psp_audio_use_float (void *data)
 
static size_t psp_write_avail (void *data)
 
static size_t psp_buffer_size (void *data)
 

Variables

audio_driver_t audio_psp
 

Macro Definition Documentation

◆ AUDIO_BUFFER_SIZE

#define AUDIO_BUFFER_SIZE   (1u<<13u)

◆ AUDIO_BUFFER_SIZE_MASK

#define AUDIO_BUFFER_SIZE_MASK   (AUDIO_BUFFER_SIZE-1)

◆ AUDIO_OUT_COUNT

#define AUDIO_OUT_COUNT   512u

Typedef Documentation

◆ psp_audio_t

typedef struct psp_audio psp_audio_t

Function Documentation

◆ audioMainLoop()

static void audioMainLoop ( void data)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ psp_audio_alive()

static bool psp_audio_alive ( void data)
static

◆ psp_audio_free()

static void psp_audio_free ( void data)
static
Here is the call graph for this function:

◆ psp_audio_init()

static void* psp_audio_init ( const char *  device,
unsigned  rate,
unsigned  latency,
unsigned  block_frames,
unsigned *  new_rate 
)
static
Here is the call graph for this function:

◆ psp_audio_set_nonblock_state()

static void psp_audio_set_nonblock_state ( void data,
bool  toggle 
)
static

◆ psp_audio_start()

static bool psp_audio_start ( void data,
bool  is_shutdown 
)
static
Here is the call graph for this function:

◆ psp_audio_stop()

static bool psp_audio_stop ( void data)
static
Here is the call graph for this function:

◆ psp_audio_use_float()

static bool psp_audio_use_float ( void data)
static
Here is the call graph for this function:

◆ psp_audio_write()

static ssize_t psp_audio_write ( void data,
const void buf,
size_t  size 
)
static
Here is the call graph for this function:

◆ psp_buffer_size()

static size_t psp_buffer_size ( void data)
static

sizeof(uint32_t)

◆ psp_write_avail()

static size_t psp_write_avail ( void data)
static
Here is the call graph for this function:

Variable Documentation

◆ audio_psp

audio_driver_t audio_psp
Initial value:
= {
"psp",
}
static bool psp_audio_start(void *data, bool is_shutdown)
Definition: psp_audio.c:248
static size_t psp_write_avail(void *data)
Definition: psp_audio.c:277
static bool psp_audio_stop(void *data)
Definition: psp_audio.c:232
static bool psp_audio_alive(void *data)
Definition: psp_audio.c:223
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void psp_audio_set_nonblock_state(void *data, bool toggle)
Definition: psp_audio.c:264
static size_t psp_buffer_size(void *data)
Definition: psp_audio.c:291
static void * psp_audio_init(const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_rate)
Definition: psp_audio.c:117
static bool psp_audio_use_float(void *data)
Definition: psp_audio.c:271
static ssize_t psp_audio_write(void *data, const void *buf, size_t size)
Definition: psp_audio.c:179
static void psp_audio_free(void *data)
Definition: psp_audio.c:153