aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2023-11-09 18:29:27 +0100
committerPaul Adenot <[email protected]>2023-11-10 11:31:35 +0100
commit6f0f14714845eda7f4bd1d816d8ecfc6da04325d (patch)
tree9eb47a056ff737f3d0526e86b728e075496c5fc3
parentb32ab3439983b2c952e29e314d0ef0fc534b75f2 (diff)
downloadcubeb-6f0f14714845eda7f4bd1d816d8ecfc6da04325d.tar.gz
cubeb-6f0f14714845eda7f4bd1d816d8ecfc6da04325d.zip
clang-format
-rw-r--r--src/cubeb_aaudio.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/cubeb_aaudio.cpp b/src/cubeb_aaudio.cpp
index ece7af2..f95f7f0 100644
--- a/src/cubeb_aaudio.cpp
+++ b/src/cubeb_aaudio.cpp
@@ -69,7 +69,7 @@ using namespace std;
X(AAudioStreamBuilder_setFramesPerDataCallback)
// not needed or added later on
- // X(AAudioStreamBuilder_setDeviceId) \
+// X(AAudioStreamBuilder_setDeviceId) \
// X(AAudioStreamBuilder_setSamplesPerFrame) \
// X(AAudioStream_getSamplesPerFrame) \
// X(AAudioStream_getDeviceId) \
@@ -1124,7 +1124,8 @@ aaudio_stream_init_impl(cubeb_stream * stm, lock_guard<mutex> & lock)
WRAP(AAudioStreamBuilder_setDataCallback)(sb, out_data_callback, stm);
assert(stm->latency_frames < std::numeric_limits<int32_t>::max());
LOG("Frames per callback set to %d for output", stm->latency_frames);
- WRAP(AAudioStreamBuilder_setFramesPerDataCallback)(sb, static_cast<int>(stm->latency_frames));
+ WRAP(AAudioStreamBuilder_setFramesPerDataCallback)
+ (sb, static_cast<int32_t>(stm->latency_frames));
int res_err = realize_stream(sb, stm->output_stream_params.get(),
&stm->ostream, &frame_size);
@@ -1179,14 +1180,16 @@ aaudio_stream_init_impl(cubeb_stream * stm, lock_guard<mutex> & lock)
WRAP(AAudioStreamBuilder_setDataCallback)(sb, in_data_callback, stm);
assert(stm->latency_frames < std::numeric_limits<int32_t>::max());
LOG("Frames per callback set to %d for input", stm->latency_frames);
- WRAP(AAudioStreamBuilder_setFramesPerDataCallback) (sb, static_cast<int>(stm->latency_frames));
+ WRAP(AAudioStreamBuilder_setFramesPerDataCallback)
+ (sb, static_cast<int32_t>(stm->latency_frames));
int res_err = realize_stream(sb, stm->input_stream_params.get(),
&stm->istream, &frame_size);
if (res_err) {
return res_err;
}
- int32_t input_burst_size = WRAP(AAudioStream_getFramesPerBurst)(stm->istream);
+ int32_t input_burst_size =
+ WRAP(AAudioStream_getFramesPerBurst)(stm->istream);
LOG("AAudio input burst size: %d", input_burst_size);
// 3 times the burst size seems to be robust.
res = WRAP(AAudioStream_setBufferSizeInFrames)(stm->istream,