RetroArch
Classes | Enumerations | Functions
rwav.c File Reference
#include <stdio.h>
#include <stdint.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <formats/rwav.h>
Include dependency graph for rwav.c:
This graph shows which files directly or indirectly include this file:

Classes

struct  rwav_iterator
 

Enumerations

enum  { ITER_BEGIN, ITER_COPY_SAMPLES, ITER_COPY_SAMPLES_8, ITER_COPY_SAMPLES_16 }
 

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)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ITER_BEGIN 
ITER_COPY_SAMPLES 
ITER_COPY_SAMPLES_8 
ITER_COPY_SAMPLES_16 

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: