RetroArch
Classes | Typedefs | Enumerations | Functions
rwav.h File Reference
#include <retro_common_api.h>
#include <stdint.h>
Include dependency graph for rwav.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rwav_t
 

Typedefs

typedef struct rwav_iterator rwav_iterator_t
 

Enumerations

enum  rwav_state { RWAV_ITERATE_ERROR = -1, RWAV_ITERATE_MORE = 0, RWAV_ITERATE_DONE = 1, RWAV_ITERATE_BUF_SIZE = 4096 }
 

Functions

void rwav_init (rwav_iterator_t *iter, rwav_t *out, const void *buf, size_t size)
 
enum rwav_state rwav_iterate (rwav_iterator_t *iter)
 
enum rwav_state rwav_load (rwav_t *out, const void *buf, size_t size)
 
void rwav_free (rwav_t *rwav)
 

Typedef Documentation

◆ rwav_iterator_t

Enumeration Type Documentation

◆ rwav_state

enum rwav_state
Enumerator
RWAV_ITERATE_ERROR 
RWAV_ITERATE_MORE 
RWAV_ITERATE_DONE 
RWAV_ITERATE_BUF_SIZE 

Function Documentation

◆ rwav_free()

void rwav_free ( rwav_t rwav)

Frees parsed wave data.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rwav_init()

void rwav_init ( rwav_iterator_t iter,
rwav_t out,
const void buf,
size_t  size 
)

Initializes the iterator to fill the out structure with data parsed from buf.

Here is the caller graph for this function:

◆ rwav_iterate()

enum rwav_state rwav_iterate ( rwav_iterator_t iter)

Parses a piece of the data. Continue calling as long as it returns RWAV_ITERATE_MORE. Stop calling otherwise, and check for errors. If RWAV_ITERATE_DONE is returned, the rwav_t structure passed to rwav_init is ready to be used. The iterator does not have to be freed.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rwav_load()

enum rwav_state rwav_load ( rwav_t out,
const void buf,
size_t  size 
)

Loads the entire data in one go.

Here is the call graph for this function:
Here is the caller graph for this function: