#include <nitro/snd.h>
void SND_ReadDriverInfo( struct SNDDriverInfo* info );
Reads the sound driver information.
The information that was read is stored in info
, the sound driver structure. Once the read completes, call SND_ReadChannelInfo
, SND_ReadPlayerInfo
, or SND_ReadTrackInfo
to obtain the necessary information from the sound driver information structure.
Note that information that was read is written directly to memory. Accordingly, when data still remains in cache, it must be deleted with DC_InvalidateRange
before referencing the sound driver information structure.
The memory region indicated by the pointer passed to the argument cannot be deleted until the process on ARM7 completes.
This function is an ARM7 reserved function. After this function is called, processing occurs only after the command is issued with the SND_FlushCommand
function.
When it is necessary to synchronize something with the completion of the process, first use SND_GetCurrentCommandTag
to obtain the command tag immediately after calling this function. After the command is issued, use the command tag and call either the SND_IsFinishedCommandTag
or SND_WaitForCommandProc
function to confirm that the process has finished or to wait for it to complete.
SND_ReadChannelInfo, SND_ReadPlayerInfo, SND_ReadTrackInfo, SND_FlushCommand, SND_GetCurrentCommandTag, SND_IsFinishedCommandTag, SND_WaitForCommandProc
02/17/2005 Initial version