You've already forked apple-bce-drv
mirror of
https://github.com/t2linux/apple-bce-drv.git
synced 2026-04-30 13:31:39 -07:00
6e7de5a554
* aaudio: fix wrong latency assignment
Due to (likely) copy-pasted code between input and output stream initialisation, the input stream latency was assigned to the output stream structure.
Input and output latency values are actually different, for example on my machine:
```
Latencies for device Digital Mic: in=40 out=42
Latencies for device Codec Output: in=6 out=41
Latencies for device Speaker: in=8 out=19
Latencies for device Bridge Loopback: in=13 out=30
Latencies for device Codec Input: in=47 out=0
```
This may or may not also fix the following, previously common error message: (e.g.) `aaudio aaudio: invalid position: , pos = 53211761056, buffer size = 16640, period size = 1`. At least, it hasn't appeared since I applied this change.
Also corrects typos in macro names and an error message.
* aaudio: apply typo corrections of 8d8e0f7 to audio.h