Location:
bassnd.h
Link against: bafl.lib
TBaSystemSoundInfo
Supported from 6.0
Provides functions that contain the information for a system sound. A sound may be a file, a tone or a fixed sequence.
The characteristics of a physical sound that corresponds to a
logical sound are encapsulated in a TBaSystemSoundInfo
object. You
can get and set the physical sound for a logical sound through the functions
provided by the BaSystemSound
class.
Defined in TBaSystemSoundInfo
:
EFile
, ENull
, ESequence
, ETone
, FileName()
, FixedSequenceNumber()
, SetFileName()
, SetFixedSequenceNumber()
, SetTone()
, SoundCategory()
, TBaSystemSoundInfo()
, TSoundCategory
, TTone
, Tone()
TBaSystemSoundInfo();
Constructs a default TBaSystemSoundInfo
object.
This object has a null type, default volume, default priority, null name, null
fixed sequence, and tone of TTone
.
TBaSystemSoundInfo(const TBaSystemSoundType& aType,const TBaSystemSoundName& aName,TInt aVolume=KSystemSoundDefaultVolume,TInt aPriority=KSystemSoundDefaultPriority);
Constructs a TBaSystemSoundInfo
object with the
specified type and file name. The sound has default volume and
priority.
|
TBaSystemSoundInfo(const TBaSystemSoundType& aType,TInt aFixedSequence,TInt aVolume=KSystemSoundDefaultVolume,TInt aPriority=KSystemSoundDefaultPriority);
Constructs a TBaSystemSoundInfo
object with the
specified type and sequence. The sound has default volume and
priority.
|
TBaSystemSoundInfo(const TBaSystemSoundType& aType,TTone aTone,TInt aVolume=KSystemSoundDefaultVolume,TInt aPriority=KSystemSoundDefaultPriority);
Constructs a TBaSystemSoundInfo
object with the
specified type and tone. The sound has default volume and
priority.
|
TSoundCategory SoundCategory() const;
Gets the sound's category.
|
TBaSystemSoundName FileName() const;
Gets the current sound's file.
|
void SetFileName(const TBaSystemSoundName& aFileName);
Replaces the current sound with the specified file.
|
TInt FixedSequenceNumber() const;
Gets the current sound's sequence.
|
void SetFixedSequenceNumber(TInt aNumber);
Replaces the current sound with the specified sequence number.
|
void SetTone(const TTone& aTone);
Replaces the current sound with the specified tone.
|
TTone Tone() const;
Gets the current system sound's tone.
|
TSoundCategory
Specifies the category of the system sound.
|
TTone
Provides functions to define a tone. Once defined, the tone can be
encapsulated using the TBaSystemSoundInfo
class and subsequently
played.
Defined in TBaSystemSoundInfo::TTone
:
ExternalizeL()
, InternalizeL()
, TTone()
, iDuration
, iFrequency
TTone()
TTone();
Default constructor. Sets up a TTone
object with
null frequency and duration.
TTone()
TTone(TInt aFrequency,TTimeIntervalMicroSeconds32 aDuration);
Constructor which sets up a TTone
object with
specified frequency and duration.
|
ExternalizeL()
void ExternalizeL(RWriteStream& aStream) const;
Saves a tone's frequency and duration.
|
InternalizeL()
void InternalizeL(RReadStream&aStream);
Gets a tone's frequency and duration.
|
iDuration
TTimeIntervalMicroSeconds32 iDuration
Duration of the tone.
iFrequency
TInt iFrequency
Frequency of the tone.