Skip to content

Commit

Permalink
minor typo
Browse files Browse the repository at this point in the history
  • Loading branch information
acli committed May 14, 2024
1 parent abe60d8 commit 998776e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audio_pa.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ void stream_write_cb(pa_stream *stream, size_t requested_bytes,
ret = pa_stream_begin_write(stream, (void **)&buffer, &bytes_we_can_transfer);
if ((ret == 0) && (buffer != NULL)) {
if (bytes_we_can_transfer <= (size_t)(audio_umb - audio_toq)) {
// the bytes are all in a row in the audo buffer
// the bytes are all in a row in the audio buffer
memcpy(buffer, audio_toq, bytes_we_can_transfer);
audio_toq += bytes_we_can_transfer;
ret = pa_stream_write(stream, buffer, bytes_we_can_transfer, NULL, 0LL, PA_SEEK_RELATIVE);
Expand Down

0 comments on commit 998776e

Please sign in to comment.