RetroArch
|
#include <retro_common_api.h>
#include <stdint.h>
#include <stddef.h>
#include <unistd.h>
#include <formats/rwav.h>
#include <audio/audio_resampler.h>
Go to the source code of this file.
Classes | |
struct | audio_chunk_t |
Macros | |
#define | audio_mix_volume audio_mix_volume_C |
Functions | |
void | audio_mix_volume_C (float *dst, const float *src, 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 sample) |
int16_t * | audio_mix_get_chunk_samples (audio_chunk_t *chunk) |
int | audio_mix_get_chunk_num_channels (audio_chunk_t *chunk) |
#define audio_mix_volume audio_mix_volume_C |
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, (if necessary) resampled into the desired output rate.
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 | ||
) |