We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 476825d + 2c6a404 commit a2724cbCopy full SHA for a2724cb
src/app/Media/Sources/AudioExtrasSource.cs
@@ -539,7 +539,7 @@ private short[] GetPcmSampleFromReader(BinaryReader binaryReader, AudioSamplingR
539
540
if (binaryReader?.BaseStream?.CanRead == true)
541
{
542
- int sampleRate = (inputSampleRate == AudioSamplingRatesEnum.Rate8KHz) ? 8000 : 16000;
+ int sampleRate = (int)inputSampleRate;
543
int sampleSize = sampleRate / 1000 * _audioSamplePeriodMilliseconds;
544
short[] pcm = new short[sampleSize];
545
@@ -598,9 +598,9 @@ public void Close()
598
}
599
600
601
- if(_musicStreamReader != null)
+ if (_musicStreamReader != null)
602
603
- lock(_musicStreamReader)
+ lock (_musicStreamReader)
604
605
_musicStreamReader.Close();
606
0 commit comments