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.
1 parent 019bbbe commit 0623bb4Copy full SHA for 0623bb4
microphone/microphone.go
@@ -64,7 +64,7 @@ func (d *Device) Read(r []int32) (int, error) {
64
count := len(r)
65
66
// get the next group of samples
67
- machine.I2S0.Read(d.buf)
+ machine.I2S0.ReadStereo(d.buf)
68
69
if len(r) > len(d.buf) {
70
count = len(d.buf)
@@ -83,7 +83,7 @@ func (d *Device) ReadWithFilter(r []int32) (int, error) {
83
for i := 0; i < len(r); i++ {
84
85
86
87
88
// filter
89
sum = applySincFilter(d.buf)
0 commit comments