opus didnt support 44.1kHz

This commit is contained in:
TonyChyi 2022-09-27 14:45:18 +08:00
parent edbe406f5b
commit b7b7e78614

View File

@ -21,7 +21,7 @@ var waveHeader = &audiodriver.WavHeader{
Size: waveHeaderSize, Size: waveHeaderSize,
AudioFormat: 1, AudioFormat: 1,
NumChannels: 2, NumChannels: 2,
SampleRate: 44100, SampleRate: 48000, // opus only support 48kHz
BlockAlign: 4, BlockAlign: 4,
BitsPerSample: 16, BitsPerSample: 16,
} }