ruuda / hound

A wav encoding and decoding library in Rust
https://codeberg.org/ruuda/hound
Apache License 2.0
489 stars 65 forks source link

Fix set correct mask for 1 channel to be CENTER_SPEAKER #88

Open rubeniskov opened 2 weeks ago

rubeniskov commented 2 weeks ago

ISSUE: https://github.com/ruuda/hound/issues/87

By the default when 1 channel is requested the speaker mask should be MONO with CENTER_SPEAKER mapping according to https://github.com/tpn/winsdk-10/blob/9b69fd26ac0c7d0b83d378dba01080e93349c2ed/Include/10.0.10240.0/shared/ksmedia.h#L1695C42-L1695C62