#include <cafe.h> #include <cafe/ax.h> s32 AXUserBegin(void);
||No more resources - try again later.|
||Attempted to call
||User-level protection state has been asserted.|
Assert a user-level protection state. This state can be detected by
This state is useful for protecting global data that is accessed by application
threads and the AX user callback.
For convenience, voice parameters that are modified using the
from within a user-level protection clause will automatically be protected. Using the
AXVoiceEnd delimiters are not necessary.
The protection state will apply until the corresponding call to
The "begin" and "end" clauses can be nested. The nesting limit is equal to
Making this call from a callback handler will return
AXSYNC_ERROR_IN_CALLBACK but have no other effect.
Nor will its matching
AXUserEnd call have any effect.
It is possible to get a return value of
AXSYNC_ERROR_IN_CALLBACK from calls not made during
the callback handler. This is an indication of a programming error elsewhere in the application,
OSLockMutex) from any callback handler, Audio or other.
2013/05/08 Automated cleanup pass.
2011/03/02 Initial version.