mirror of
https://github.com/audacity/portaudio.git
synced 2026-02-03 19:46:44 -06:00
Merge branch 'winrt' into 'master'
WASAPI: Fixed crash on NULL. Merged-on: https://assembla.com/code/portaudio/git/merge_requests/6794444
This commit is contained in:
commit
c0d239712d
@ -2462,7 +2462,7 @@ static PaError GetClosestFormat(IAudioClient *client, double sampleRate, const P
|
||||
WAVEFORMATEX *sharedClosestMatch = NULL;
|
||||
HRESULT hr = !S_OK;
|
||||
PaStreamParameters params = (*_params);
|
||||
const BOOL explicitFormat = ((streamInfo->flags & paWinWasapiExplicitSampleFormat) == paWinWasapiExplicitSampleFormat);
|
||||
const BOOL explicitFormat = (streamInfo != NULL) && ((streamInfo->flags & paWinWasapiExplicitSampleFormat) == paWinWasapiExplicitSampleFormat);
|
||||
(void)output;
|
||||
|
||||
/* It was not noticed that 24-bit Input producing no output while device accepts this format.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user