# SND_WriteInstData

## Syntax

      #include <nitro/snd.h>

      BOOL SND_WriteInstData(
              SNDBankData* bank,
              int prgNo,
              int key,
              const SNDInstData* inst );

## Arguments

bank | This is the bank data pointer.
prgNo | The program number.
key | The key number.
inst | The pointer to the structure where the updated instrument data are stored.

## Return Values

TRUE if the instrument data is updated successfully. FALSE is if fails.

## Description

Updates the instrument data in `bank` with the value specified by the `SNDInstData` structure.

The function fails if an invalid program number is specified for `prgNo`.

If `prgNo` specifies a drum set or a key split, then only the instrument data corresponding to the key number `key` get updated. If the the program number represents a normal instrument, then `key` is ignored.

## See Also

SNDInstData

## Revision History

2004/07/20 Initial version.

CONFIDENTIAL