mbillingr/ambisonic

Playback bug when using z-coordinate

mbillingr opened this issue · 1 comments

Distance calculation is wrong in Bweights::from_position for any z != 0:

let dist = (pos[0] * pos[0] + pos[1] * pos[1] + pos[1] * pos[2]).sqrt()
                                                    ^ should be 2

Same bug in doppler_rate (2x)