# SND_WaitForCommandProc

## C Specification

      #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 `SND_GetCurrentCommandTag`. 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.

### Caution

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

## See Also

`SND_GetCurrentCommandTag, SND_FlushCommand`

## Revision History

07/20/2004 Initial version

CONFIDENTIAL