NNS_SndCaptureCreateThread

Syntax

#include <nnsys/snd.h>
void NNS_SndCaptureCreateThread( u32 threadPrio );

Arguments

threadPrio The priority level of the capture thread.

Return Values

None.

Description

Starts the capture thread.

Once the capture thread is started, the capture process is handled by the capture thread, rather than the IRQ handler.

To destroy the capture thread that started, call the NNS_SndCaptureDestroyThread function.

Note

When using a capture thread, the capture process may be delayed if the capture thread has a lower priority than other threads. If the capture process is not performed in time, normal playback will not be possible. Therefore, set the capture thread's priority level threadPrio as high as possible.

For example, the priority of this thread must be set higher than that of threads that take time to process, such as stream or CARD asynchronous process threads. The priority level of the stream thread can be set with NNS_SndArcStrmInit, and the priority level of the CARD asynchronous process thread can be set with CARD_SetThreadPriority.

See Also

NNS_SndCaptureDestroyThread, NNS_SndArcStrmInit

Revision History

2006/04/24 Added an explanation about destroying the thread.
2005/07/22 Revised the cautionary note regarding priority.
2004/09/13 Initial version.


CONFIDENTIAL