Skip to content

Commit

Permalink
Fix missing sampling rate in audiotest
Browse files Browse the repository at this point in the history
  • Loading branch information
lherman-cs committed Dec 17, 2020
1 parent db0884a commit 6280b45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/driver/audiotest/dummy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
)

Expand Down

0 comments on commit 6280b45

Please sign in to comment.