janstary / sox

resurrect SoX
Other
5 stars 1 forks source link

using libao as output crashes #70

Open janstary opened 3 months ago

janstary commented 3 months ago

This is what happens on OpenBSD and FreeBSD with AO being the default output (explicitly disabling sndio on OpenBSD, and having no other driver on FreeBSD):

$ sox -b 16 -n file.wav synth 10 gain -3
$ play -V6 file.wav 
play DBUG sox: Looking for a default device: trying format `ao'
Floating point exception (core dumped) 

However, with env AUDIODRIVER=ao play file.wav, the file plays fine. Why is that, when the output driver (ao) is the same?

Also, what "floating point" exception? Is ao using floats internaly? (The audio file is 16bit ints on purpose.)

janstary commented 3 months ago

Same thing on Debian.