NAME

Snack_GetSample, Snack_SetSample - macros to set/get sample values of Snack sound objects

SYNOPSIS

#include <snack.h>
Snack_GetSample(sound, index)
Snack_SetSample(sound, index, value)

ARGUMENTS

Sound *sound (in)
    A pointer to a sound object to query or modify
int index (in)
    A positive index pointing to a sound sample
int value (in)
    The sample value as an integer.

DESCRIPTION

The following functions are implemented as macros for performance reasons.  Snack_GetSample returns the sample value at index. Snack_SetSample sets the sample at index to value. No check is made that index or value are valid values. Block transfers can be accomplished using the functions Snack_PutSoundData and Snack_GetSoundData.