TBaSystemSoundInfo::TTone Class Reference

class TBaSystemSoundInfo::TTone

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

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.

Parameters

TInt aFrequencyThe tone's frequency.
TTimeIntervalMicroSeconds32 aDurationThe tone's duration.

Member Functions Documentation

ExternalizeL(RWriteStream &)

voidExternalizeL(RWriteStream &aStream)const

Saves a tone's frequency and duration.

Parameters

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

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aStream)

Gets a tone's frequency and duration.

Parameters

RReadStream & 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. ETrue if the sound's category and instance are null, EFalse otherwise.

Member Data Documentation

TTimeIntervalMicroSeconds32 iDuration

TTimeIntervalMicroSeconds32 iDuration

Duration of the tone.

TInt iFrequency

TInt iFrequency

Frequency of the tone.