summaryrefslogtreecommitdiff
path: root/media/libcubeb/src/cubeb_android.h
blob: c21a941ab53a64a3c1d9e3a63c2656534a794e1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef CUBEB_ANDROID_H
#define CUBEB_ANDROID_H

#ifdef __cplusplus
extern "C" {
#endif
// If the latency requested is above this threshold, this stream is considered
// intended for playback (vs. real-time). Tell Android it should favor saving
// power over performance or latency.
// This is around 100ms at 44100 or 48000
const uint16_t POWERSAVE_LATENCY_FRAMES_THRESHOLD = 4000;

#ifdef __cplusplus
};
#endif

#endif // CUBEB_ANDROID_H