TheLinx / lao

A library for audio output through Lua.
http://thelinx.github.com/lao/
18 stars 2 forks source link

add append_global_option(k,v) and postpone ao_initialize() #7

Closed peterbillam closed 7 years ago

peterbillam commented 7 years ago

To allow setting quiet=yes in time to stop the debug messages emitted by ao_initialize(), I suggest we add a append_global_option(k,v) function, and delay calling ao_initialize() until the next function is called.

If that function is append_global_option then we call that first and ao_initialize second (assuming it works that way round), whereas if it's some other function like open() then we call ao_initialize first and the function second.

daurnimator commented 7 years ago

See PR #6