Skip to content

Commit

Permalink
wasapi: Warning fixes for LOG() passed size_t.
Browse files Browse the repository at this point in the history
  • Loading branch information
kinetiknz committed Nov 15, 2016
1 parent e110e33 commit 7073670
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cubeb_wasapi.cpp
Expand Up @@ -728,7 +728,7 @@ refill_callback_duplex(cubeb_stream * stm)
stm->linear_input_buffer.push_front_silence(padding * stm->input_stream_params.channels);
}

LOGV("Duplex callback: input frames: %zu, output frames: %zu",
LOGV("Duplex callback: input frames: %Iu, output frames: %Iu",
stm->linear_input_buffer.length(), output_frames);

refill(stm,
Expand Down Expand Up @@ -764,7 +764,7 @@ refill_callback_input(cubeb_stream * stm)
return true;
}

LOGV("Input callback: input frames: %zu", stm->linear_input_buffer.length());
LOGV("Input callback: input frames: %Iu", stm->linear_input_buffer.length());

long read = refill(stm,
stm->linear_input_buffer.data(),
Expand Down Expand Up @@ -804,7 +804,7 @@ refill_callback_output(cubeb_stream * stm)
output_buffer,
output_frames);

LOGV("Output callback: output frames requested: %zu, got %ld",
LOGV("Output callback: output frames requested: %Iu, got %ld",
output_frames, got);

XASSERT(got >= 0);
Expand Down Expand Up @@ -1263,7 +1263,7 @@ wasapi_get_min_latency(cubeb * ctx, cubeb_stream_params params, uint32_t * laten
return CUBEB_ERROR;
}

LOG("default device period: %lld", default_period);
LOG("default device period: %I64d", default_period);

/* According to the docs, the best latency we can achieve is by synchronizing
the stream and the engine.
Expand Down

0 comments on commit 7073670

Please sign in to comment.