Skip to content

Commit

Permalink
Compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Oct 28, 2023
1 parent 003b90c commit e084ffc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AudioTools/AudioOutput.h
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ class Throttle : public AudioOutput {
int64_t durationUsEff = micros() - start_time;
int64_t durationUsToBe = (sum_samples * 1000000) / info.sample_rate;
int64_t waitUs = durationUsToBe - durationUsEff + info.correction_us;
LOGI("wait: %d", waitUs);
LOGI("wait: %d", (int)waitUs);
if (waitUs > 0) {
delayMicroseconds(waitUs);
}
Expand Down
2 changes: 1 addition & 1 deletion src/AudioTools/VolumeStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class VolumeStream : public AudioStream {

/// Writes raw PCM audio data, which will be the input for the volume control
virtual size_t write(const uint8_t *buffer, size_t size) override {
LOGD("VolumeStream::write: %d", size);
LOGD("VolumeStream::write: %zu", size);
if (buffer==nullptr || p_out==nullptr){
LOGE("NPE");
return 0;
Expand Down

0 comments on commit e084ffc

Please sign in to comment.