Libaudioverse 0.9-alpha7

3 views
Skip to first unread message

Austin Hicks

unread,
Sep 2, 2016, 4:36:33 PM9/2/16
to libaud...@camlorn.net
Hi,

The CI is still building the alpha, so it won't be up for a little
while. Three notable changes:


- Lav_initialize and Lav_shutdown remember how many times they have been
called. The first time you call Lav_initialize, Libaudioverse
initializes. After that, it just increments a counter. To shut down
the library, you must call Lav_shutdown exactly as many times as you
called Lav_initialize. Duplicate calls to these functions are reflected
in the log. The point is to allow things like NVDA add-ons or other
plugin scenarios to use these functions safely, and without stomping on
other people.


- Some functions will now error if the library is not initialized, most
notably Lav_createServer.


- Python has a new thing, InitializationManager. Throw this around your
main function and/or block of code that starts your app:


with libaudioverse.InitializationManager():

#stuff


and it will handle initialization and shutdown for you. Unlike the old
approach of manually calling initialize() and shutdown(), this will
behave correctly in the event that an uncaught exception reaches your
main block of code. Use this. As the Python docstring points out,
failure to call shutdown() will cause crashes in some cases, which means
that this prevents your app's crash from becoming a Libaudioverse crash,
usually manifested as a segfault or a "This application has stopped
working" dialog on Windows.

Hrvoje Katic

unread,
Sep 3, 2016, 4:26:50 AM9/3/16
to libaud...@camlorn.net
Hello,
A couple of questions. Since lav0.9.B6, some distance enums are no
longer available, such as exponential. Is there any special reason for
that?
Thanks!
-- You received this message because you are subscribed to the Google Groups "libaudioverse" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libaudiovers...@camlorn.net.
To post to this group, send email to libaud...@camlorn.net.
To view this discussion on the web visit https://groups.google.com/a/camlorn.net/d/msgid/libaudioverse/db2b37ef-555e-6fc5-7cf1-a21375de9e52%40camlorn.net.

Austin Hicks

unread,
Sep 3, 2016, 10:57:55 AM9/3/16
to libaud...@camlorn.net
They were refactored for a6. There's a message somewhere around here
about it, but the short version is I tweaked the formulas to work
better, then renamed exponential to inverse. The functionality is still
present.


Also, I forgot to press the final button in the release process. Sorry.
The alpha will be up shortly.
Reply all
Reply to author
Forward
0 new messages