# SND_WaitForCommandProc

## Syntax

      #include <nitro/snd.h>

      void SND_WaitForCommandProc( u32 tag );

## Arguments

tag | The command tag.

## Return Values

None.

## Description

Waits for command processes to end.

The command tag specified for tag is the one obtained by the `SND_GetCurrentCommandTag` function. The return of this function confirms that execution has completed for the command that was reserved immediately prior to the acquisition of the command tag.

### Note

Note that you could end up waiting indefinitely for a command if it is not flushed by the `SND_FlushCommand` function.

## See Also

`SND_GetCurrentCommandTag, SND_FlushCommand`

## Revision History

2004/07/20 Initial version.

CONFIDENTIAL