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,
AudioFormat: 1,
NumChannels: 2,
SampleRate: 44100,
SampleRate: 48000, // opus only support 48kHz
BlockAlign: 4,
BitsPerSample: 16,
}