Beatmup
aaudio_playback.cpp File Reference
#include "aaudio_playback.h"
#include <aaudio/AAudio.h>

Go to the source code of this file.

Classes

class  Beatmup::Audio::Android::AAudioPlayback::Backend
 

Functions

aaudio_data_callback_result_t aaudioDataCallback (AAudioStream *stream, void *userData, void *audioData, int32_t numFrames)
 

Variables

static const int64_t ONE_SECOND_IN_NANOS = 1000 * 1000 * 1000
 

Function Documentation

◆ aaudioDataCallback()

aaudio_data_callback_result_t aaudioDataCallback ( AAudioStream *  stream,
void *  userData,
void *  audioData,
int32_t  numFrames 
)

Definition at line 29 of file aaudio_playback.cpp.

34  {
35  ((Android::AAudioPlayback*)userData)->pullBuffer((sample8*)audioData, numFrames);
36  return AAUDIO_CALLBACK_RESULT_CONTINUE;
37 }

Variable Documentation

◆ ONE_SECOND_IN_NANOS

const int64_t ONE_SECOND_IN_NANOS = 1000 * 1000 * 1000
static

Definition at line 26 of file aaudio_playback.cpp.