RetroArch
|
#include <stdio.h>
#include <stdint.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <formats/rwav.h>
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) |
Frees parsed wave data.
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.
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.
enum rwav_state rwav_load | ( | rwav_t * | out, |
const void * | buf, | ||
size_t | size | ||
) |
Loads the entire data in one go.