Location:
bassnd.h
Link against: bafl.lib
class TBaSystemSoundInfo;
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()
, TBaSystemSoundInfo()
, TBaSystemSoundInfo()
, TBaSystemSoundInfo()
, TSoundCategory
, TTone
, Tone()
, iPriority
, iType
, iVolume
IMPORT_C 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
.
IMPORT_C TBaSystemSoundInfo(const TBaSystemSoundType &aType, const TBaSystemSoundName &aName, TInt aVolume=1,TInt aPriority=0);
Constructs a TBaSystemSoundInfo object with the specified type and file name. The sound has default volume and priority.
|
IMPORT_C TBaSystemSoundInfo(const TBaSystemSoundType &aType, TInt aFixedSequence, TInt aVolume=1,TInt aPriority=0);
Constructs a TBaSystemSoundInfo object with the specified type and sequence. The sound has default volume and priority.
|
IMPORT_C TBaSystemSoundInfo(const TBaSystemSoundType &aType, TTone aTone, TInt aVolume=1,TInt aPriority=0);
Constructs a TBaSystemSoundInfo object with the specified type and tone. The sound has default volume and priority.
|
IMPORT_C TSoundCategory SoundCategory() const;
Gets the sound's category.
|
inline TInt FixedSequenceNumber() const;
Gets the current sound's sequence.
|
inline TBaSystemSoundName FileName() const;
Gets the current sound's file.
|
inline TTone Tone() const;
Gets the current system sound's tone.
|
IMPORT_C void SetFixedSequenceNumber(TInt aNumber);
Replaces the current sound with the specified sequence number.
|
IMPORT_C void SetFileName(const TBaSystemSoundName &aFileName);
Replaces the current sound with the specified file.
|
IMPORT_C void SetTone(const TTone &aTone);
Replaces the current sound with the specified tone.
|
class 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
:
TTone()
, TTone()
, iDuration
, iFrequency
TTone()
inline TTone();
Default constructor. Sets up a TTone
object with null frequency and duration.
TTone()
inline TTone(TInt aFrequency, TTimeIntervalMicroSeconds32 aDuration);
Constructor which sets up a TTone
object with specified frequency and duration.
|
iFrequency
TInt iFrequency;
Frequency of the tone.
iDuration
TTimeIntervalMicroSeconds32 iDuration;
Duration of the tone.
TSoundCategory
Specifies the category of the system sound.
|
TInt iPriority;