17#ifndef OBOE_STABILIZEDCALLBACK_H
18#define OBOE_STABILIZEDCALLBACK_H
21#include "oboe/AudioStream.h"
51 double mOpsPerNano = 1;
60#if defined(__i386__) || defined(__x86_64__)
61#define cpu_relax() asm volatile("rep; nop" ::: "memory");
63#elif defined(__arm__) || defined(__mips__) || defined(__riscv)
64 #define cpu_relax() asm volatile("":::"memory")
66#elif defined(__aarch64__)
67#define cpu_relax() asm volatile("yield" ::: "memory")
70#error "cpu_relax is not defined for this architecture"
Definition AudioStreamCallback.h:187
virtual void onErrorBeforeClose(AudioStream *, Result)
Definition AudioStreamCallback.h:152
virtual void onErrorAfterClose(AudioStream *, Result)
Definition AudioStreamCallback.h:168
Definition AudioStream.h:44
Definition ResultWithValue.h:47
Definition StabilizedCallback.h:25
void onErrorBeforeClose(AudioStream *oboeStream, Result error) override
Definition StabilizedCallback.h:33
DataCallbackResult onAudioReady(AudioStream *oboeStream, void *audioData, int32_t numFrames) override
void onErrorAfterClose(AudioStream *oboeStream, Result error) override
Definition StabilizedCallback.h:37
Definition AudioClock.h:24
Result
Definition Definitions.h:172
DataCallbackResult
Definition Definitions.h:160