Macros | Functions | Variables
pvrecorder/src/miniaudio/examples/fixed_size_callback.c File Reference
#include "../miniaudio.h"
#include <stdio.h>
Include dependency graph for pvrecorder/src/miniaudio/examples/fixed_size_callback.c:

Go to the source code of this file.

Macros

#define DEVICE_CHANNELS   1
 
#define DEVICE_FORMAT   ma_format_f32
 
#define DEVICE_SAMPLE_RATE   48000
 
#define MINIAUDIO_IMPLEMENTATION
 
#define PCM_FRAME_CHUNK_SIZE   1234 /* <-- Play around with this to control your fixed sized buffer. */
 

Functions

void data_callback (ma_device *pDevice, void *pOutput, const void *pInput, ma_uint32 frameCount)
 
void data_callback_fixed (ma_device *pDevice, void *pOutput, const void *pInput, ma_uint32 frameCount)
 
int main (int argc, char **argv)
 

Variables

ma_pcm_rb g_rb
 
ma_waveform g_sineWave
 

Macro Definition Documentation

◆ DEVICE_CHANNELS

#define DEVICE_CHANNELS   1

◆ DEVICE_FORMAT

#define DEVICE_FORMAT   ma_format_f32

◆ DEVICE_SAMPLE_RATE

#define DEVICE_SAMPLE_RATE   48000

◆ MINIAUDIO_IMPLEMENTATION

#define MINIAUDIO_IMPLEMENTATION

◆ PCM_FRAME_CHUNK_SIZE

#define PCM_FRAME_CHUNK_SIZE   1234 /* <-- Play around with this to control your fixed sized buffer. */

Function Documentation

◆ data_callback()

void data_callback ( ma_device pDevice,
void *  pOutput,
const void *  pInput,
ma_uint32  frameCount 
)

◆ data_callback_fixed()

void data_callback_fixed ( ma_device pDevice,
void *  pOutput,
const void *  pInput,
ma_uint32  frameCount 
)

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ g_rb

ma_pcm_rb g_rb

◆ g_sineWave

ma_waveform g_sineWave


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:57