Repository navigation
Commit 297bc5a
committed
fix(macos): accept 8-bit integer PCM microphone input
decodeInterleavedStereo's guard allowed bitsPerChannel down to 8 but
required bytesPerSample >= 2, so an 8-bit-in-1-byte microphone buffer
was rejected even though the decode loop already handles any
bytesPerSample generically. Widen the guard to 1...4 and cover it with
an 8-bit fixture.1 parent f47b418 commit 297bc5a
2 files changed
Lines changed: 2 additions & 1 deletion
File tree
- electron/native/screencapturekit
- Sources/OpenScreenCaptureCore
- Tests/OpenScreenCaptureCoreTests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
508 | | - | |
| 508 | + | |
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
| 466 | + | |
466 | 467 | | |
467 | 468 | | |
468 | 469 | | |
| |||
0 commit comments