roar_error(3)
π roar_error(3) β the RoarAudio error code, bestie π
okay so this is a page from the RoarAudio Programmer's Manual, and it's about one lil variable that carries so much drama: your current RoarAudio error value. let's get into it π«Ά
β¨ NAME β¨
roar_error β the RoarAudio error code π
πΈ SYNOPSIS πΈ
#include <roaraudio.h>
that's it. that's the whole vibe check. include the header and you're in π
π¦ DESCRIPTION π¦
okay so roar_error is a variable or a macro that expands to a read-write able variable, and what it stores is the current RoarAudio error value. the data type of this variable-or-macro is int. periodt.
when the host environment supports it, this is thread local. so like, your thread's error is your thread's error. main character energy, no sharing required β¨
here's the tea tho π: all function calls inside libroar are allowed to set this value. (exceptions get noted, either right here or in the docs for the individual functions.) some of them will also clear it, in the case where there's no error at all. and it's not just libroar β applications and other librarys may also alter the value.
so what does that mean for you, bestie? it means if you still need that error value after calling other functions, you have to save it yourself before making those calls. it's giving "hold my hand or i'll lose it" π the value does not wait for you, ngl.
π EXCEPTIONS π
these functions will not alter this value. iconic behaviour, honestly:
ROAR_DBG(3)ROAR_WARN(3)ROAR_ERR(3)ROAR_INFO(3)
plus these three:
roar_err_store(3)roar_err_restore(3)roar_err_convert(3)
π EXAMPLES π
FIXME
yeah. FIXME. that's the whole examples section. not me reading that and just π β the docs said "we'll do it later" and never did. we love an unfinished slay.
π SEE ALSO π
and that's the page!! tysm for reading, bestie β check your errors, save your values, stay thread local πβ¨ππ¦πΈπ π«Ά
this masterpiece came to you courtesy of RoarAudio, dated July 2012. yeah, 2012. vintage. lowkey a relic and highkey still running your audio. iykyk ππ§π
π¦ where this page comes from
- ubuntu jammy: libroar-dev 1.0~beta12-4 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms