RetroArch
Classes | Macros | Functions
audio_mix.h File Reference
#include <retro_common_api.h>
#include <stdint.h>
#include <stddef.h>
#include <unistd.h>
#include <formats/rwav.h>
#include <audio/audio_resampler.h>
Include dependency graph for audio_mix.h:
This graph shows which files directly or indirectly include this file:

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_taudio_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_taudio_mix_get_chunk_samples (audio_chunk_t *chunk)
 
int audio_mix_get_chunk_num_channels (audio_chunk_t *chunk)
 

Macro Definition Documentation

◆ audio_mix_volume

#define audio_mix_volume   audio_mix_volume_C

Function Documentation

◆ audio_mix_free_chunk()

void audio_mix_free_chunk ( audio_chunk_t chunk)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ audio_mix_get_chunk_num_channels()

int audio_mix_get_chunk_num_channels ( audio_chunk_t chunk)

◆ audio_mix_get_chunk_num_samples()

size_t audio_mix_get_chunk_num_samples ( audio_chunk_t chunk)

◆ audio_mix_get_chunk_sample()

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.

◆ audio_mix_get_chunk_samples()

int16_t* audio_mix_get_chunk_samples ( audio_chunk_t chunk)

◆ audio_mix_load_wav_file()

audio_chunk_t* audio_mix_load_wav_file ( const char *  path,
int  sample_rate 
)
Here is the call graph for this function:

◆ audio_mix_volume_C()

void audio_mix_volume_C ( float *  dst,
const float *  src,
float  vol,
size_t  samples 
)