Skip to content

Commit

Permalink
set nAvgBytesPerSec properly
Browse files Browse the repository at this point in the history
  • Loading branch information
wkpark committed Jul 29, 2021
1 parent f3381a7 commit 358ce71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ bool HDevice::SetupAudioCapture(IBaseFilter *filter, AudioConfig &config)
// set the desired sampleRate
wfex->nSamplesPerSec = config.sampleRate;
Debug(L"\tdesired sampleRate = %d", config.sampleRate);
wfex->nAvgBytesPerSec = wfex->nSamplesPerSec * wfex->nBlockAlign;
}
}

Expand Down

0 comments on commit 358ce71

Please sign in to comment.