Skip to content

Commit

Permalink
try audio source is playing
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Feb 16, 2025
1 parent 8085550 commit 0735bdd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ private async void RecordInputAudio(CancellationToken cancellationToken)

async Task BufferCallback(ReadOnlyMemory<byte> bufferCallback)
{
if (!isMuted || sampleQueue.IsEmpty)
if (!isMuted && !audioSource.isPlaying)
{
try
{
Expand Down

0 comments on commit 0735bdd

Please sign in to comment.