RetroArch
|
#include <audio/audio_mix.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <memalign.h>
#include <retro_miscellaneous.h>
#include <streams/file_stream.h>
#include <audio/conversion/float_to_s16.h>
#include <audio/conversion/s16_to_float.h>
Functions | |
void | audio_mix_volume_C (float *out, const float *in, float vol, size_t samples) |
void | audio_mix_free_chunk (audio_chunk_t *chunk) |
audio_chunk_t * | audio_mix_load_wav_file (const char *path, int sample_rate) |
size_t | audio_mix_get_chunk_num_samples (audio_chunk_t *chunk) |
int16_t | audio_mix_get_chunk_sample (audio_chunk_t *chunk, unsigned channel, size_t index) |
int16_t * | audio_mix_get_chunk_samples (audio_chunk_t *chunk) |
int | audio_mix_get_chunk_num_channels (audio_chunk_t *chunk) |
void audio_mix_free_chunk | ( | audio_chunk_t * | chunk | ) |
int audio_mix_get_chunk_num_channels | ( | audio_chunk_t * | chunk | ) |
size_t audio_mix_get_chunk_num_samples | ( | audio_chunk_t * | chunk | ) |
int16_t audio_mix_get_chunk_sample | ( | audio_chunk_t * | chunk, |
unsigned | channel, | ||
size_t | index | ||
) |
audio_mix_get_chunk_sample: : audio chunk instance : channel of the sample (0=left, 1=right) : index of the sample
Get a sample from an audio chunk.
Returns: A signed 16-bit audio sample.
int16_t* audio_mix_get_chunk_samples | ( | audio_chunk_t * | chunk | ) |
audio_chunk_t* audio_mix_load_wav_file | ( | const char * | path, |
int | sample_rate | ||
) |