TBaSystemSoundInfo::TTone Class Reference

#include <bassnd.h>

class TBaSystemSoundInfo::TTone

Detailed Description

Provides functions to define a tone. Once defined, the tone can be encapsulated using the TBaSystemSoundInfo class and subsequently played.

Member Attribute Documentation

iDuration

Duration of the tone.

iFrequency

TInt iFrequency

Frequency of the tone.

Constructor & Destructor Documentation

TTone ( )

TTone()[inline]

Default constructor. Sets up a TTone object with null frequency and duration.

TTone ( TInt, TTimeIntervalMicroSeconds32 )

TTone(TIntaFrequency,
TTimeIntervalMicroSeconds32aDuration
)[inline]

Constructor which sets up a TTone object with specified frequency and duration.

ParameterDescription
aFrequencyThe tone's frequency.
aDurationThe tone's duration.

Member Function Documentation

ExternalizeL ( RWriteStream & )

voidExternalizeL(RWriteStream &aStream)const

Saves a tone's frequency and duration.

ParameterDescription
aStreamThe stream to which the tone's frequency and duration is written.

InternalizeL ( RReadStream & )

voidInternalizeL(RReadStream &aStream)

Gets a tone's frequency and duration.

ParameterDescription
aStreamThe stream from which the tone's frequency and duration is read.

IsNull ( )

TBool IsNull()const

Tests whether the sound's category and instance are null.

Returns: ETrue if the sound's category and instance are null, EFalse otherwise.