mirror of
https://github.com/pion/mediadevices.git
synced 2025-09-26 20:41:46 +08:00
Fix missing sampling rate in audiotest
This commit is contained in:
@@ -64,8 +64,9 @@ func (d *dummy) AudioRecord(p prop.Media) (audio.Reader, error) {
|
||||
|
||||
a := wave.NewFloat32Interleaved(
|
||||
wave.ChunkInfo{
|
||||
Channels: p.ChannelCount,
|
||||
Len: nSample,
|
||||
Channels: p.ChannelCount,
|
||||
Len: nSample,
|
||||
SamplingRate: p.SampleRate,
|
||||
},
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user