aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2023-04-24 14:34:24 +0200
committerPaul Adenot <[email protected]>2023-04-26 14:28:46 +0200
commitd3820eb36536d4e14efc75f881ff56a5b65f90bd (patch)
tree3b1c09d373298b936edbfdbf585820c57824c360
parentaa05a1380ec357a5cf5ea617a8e8ce5db092b6fa (diff)
downloadcubeb-d3820eb36536d4e14efc75f881ff56a5b65f90bd.tar.gz
cubeb-d3820eb36536d4e14efc75f881ff56a5b65f90bd.zip
clang-format cubeb_winmm.c
-rw-r--r--src/cubeb_winmm.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/cubeb_winmm.c b/src/cubeb_winmm.c
index 84ebbaa..1dd2ec4 100644
--- a/src/cubeb_winmm.c
+++ b/src/cubeb_winmm.c
@@ -153,9 +153,10 @@ winmm_get_next_buffer(cubeb_stream * stm)
}
static long
-preroll_callback(cubeb_stream * stream, void * user, const void * inputbuffer, void * outputbuffer, long nframes)
+preroll_callback(cubeb_stream * stream, void * user, const void * inputbuffer,
+ void * outputbuffer, long nframes)
{
- memset((uint8_t*)outputbuffer, 0, nframes * bytes_per_frame(stream->params));
+ memset((uint8_t *)outputbuffer, 0, nframes * bytes_per_frame(stream->params));
return nframes;
}
@@ -800,9 +801,11 @@ winmm_stream_get_position(cubeb_stream * stm, uint64_t * position)
return CUBEB_ERROR;
}
- uint64_t position_not_adjusted = update_64bit_position(stm, time.u.cb) / stm->frame_size;
+ uint64_t position_not_adjusted =
+ update_64bit_position(stm, time.u.cb) / stm->frame_size;
- // Subtract the number of frames that were written while prerolling, during initialization.
+ // Subtract the number of frames that were written while prerolling, during
+ // initialization.
if (position_not_adjusted < stm->position_base) {
*position = 0;
} else {