nw::snd::WaveSoundDataInfo Structure

Header file: nw/snd/snd_WaveSoundPlayer.h

Syntax

struct WaveSoundDataInfo
{
   bool loopFlag;
   int sampleRate;
   u32 loopStart;
   u32 loopEnd;
};

Description

This set of parameters is for wave sound data.

This information can be retrieved using WaveSoundHandle::ReadWaveSoundDataInfo.

Member Variables

loopFlag True if the wave sound data is looped. False if it stops at the end.
sampleRate Represents the sampling rate of the wave sound data.
loopStart Represents the loop start position when the wave sound data is looped as a number of samples from the start of the wave sound.
loopEnd Represents the loop end position when the wave sound data is looped as a number of samples from the start of the wave sound. Represents the end of the data as a number of samples if stream data is not looped. (Points to the sample following the last sample played.)

See Also

WaveSoundHandle::ReadWaveSoundDataInfo

Revision History

2010/03/08
Changed the type of loopStart and loopEnd (from unsigned long to u32)
2010/01/22
Initial version.

CONFIDENTIAL