Skip to content

Commit

Permalink
Quieten a benign compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebrady committed Dec 5, 2024
1 parent 7c57cc3 commit d166477
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions audio_pa.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ void stream_write_cb(pa_stream *stream, size_t requested_bytes,
__attribute__((unused)) void *userdata) {
check_pa_stream_status(stream, "audio_pa stream_write_cb.");
int bytes_to_transfer = requested_bytes;
int bytes_transferred = 0;
// int bytes_transferred = 0;
uint8_t *buffer = NULL;
int ret = 0;
pthread_mutex_lock(&buffer_mutex);
Expand Down Expand Up @@ -413,7 +413,7 @@ void stream_write_cb(pa_stream *stream, size_t requested_bytes,
ret = pa_stream_write(stream, buffer, bytes_we_can_transfer, NULL, 0LL, PA_SEEK_RELATIVE);
audio_toq = audio_lmb + bytes_we_can_transfer - first_portion_to_write;
}
bytes_transferred += bytes_we_can_transfer;
// bytes_transferred += bytes_we_can_transfer;
audio_occupancy -= bytes_we_can_transfer;
bytes_to_transfer -= bytes_we_can_transfer;
}
Expand Down

0 comments on commit d166477

Please sign in to comment.