RetroArch
Functions
audio_mix.c File Reference
#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>
Include dependency graph for audio_mix.c:

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_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 index)
 
int16_taudio_mix_get_chunk_samples (audio_chunk_t *chunk)
 
int audio_mix_get_chunk_num_channels (audio_chunk_t *chunk)
 

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.

◆ 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 *  out,
const float *  in,
float  vol,
size_t  samples 
)