kopia lustrzana https://gitlab.com/eliggett/wfview
Force PA to use 48K Sample Rate if default is 44.1K
rodzic
04526db635
commit
b5591e0867
|
@ -223,10 +223,14 @@ bool audioHandler::init(audioSetup setupIn)
|
|||
|
||||
aParams.hostApiSpecificStreamInfo = NULL;
|
||||
|
||||
// Always use the "preferred" sample rate
|
||||
// Always use the "preferred" sample rate (unless it is 44100)
|
||||
// We can always resample if needed
|
||||
if (info->defaultSampleRate == 44100) {
|
||||
this->nativeSampleRate = 48000;
|
||||
}
|
||||
else {
|
||||
this->nativeSampleRate = info->defaultSampleRate;
|
||||
|
||||
}
|
||||
// Per channel chunk size.
|
||||
this->chunkSize = (this->nativeSampleRate / 50);
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue