Link against: avkon.lib
None
#include <aknsoundsystem.h>
Provides support for handling key sounds.
Public Member Functions | |
IMPORT_C | ~CAknKeySoundSystem () |
Destructor. | |
IMPORT_C void | PushContextL (TInt aResourceId) |
Reads key sound context from resource file and pushes it to the sound stack. | |
IMPORT_C void | PopContext () |
Pops the top context from the key sound stack. | |
IMPORT_C void | PlaySound (const TKeyEvent &aKeyEvent) |
Plays a sound corresponding to the given key event. | |
IMPORT_C void | PlaySound (TInt aSid) |
Plays a sound corresponding to the given sound ID. | |
IMPORT_C void | AddAppSoundInfoListL (TInt aResourceId) |
Installs an application specific set of sound IDs. | |
IMPORT_C void | BringToForeground () |
This function brings the sounds back to foreground. | |
IMPORT_C void | StopSound (TInt aSid) |
Stops playing the sound with given ID. | |
IMPORT_C void | LockContext () |
Locks sound context, which prevents other instances from bringing their sound contexts topmost. | |
IMPORT_C void | ReleaseContext () |
Releases the context lock. | |
IMPORT_C TInt | RequestSoundInfoL (TInt aAvkonSid, CAknSoundInfo &aInfo) |
Reads sound information from given Avkon sound ID. | |
IMPORT_C TInt | TopContext () |
Returns top context id from the session. | |
void | DisableNextKeySound (TInt aScanCode) |
Disables next matching key sound until next pointer up event. | |
Static Public Member Functions | |
static IMPORT_C CAknKeySoundSystem * | NewL (TInt aUid) |
Base class default constructor. |
|
Destructor. |
|
Installs an application specific set of sound IDs.
The specified resource ID must be of the type
|
|
This function brings the sounds back to foreground.
This function should be called from |
|
Disables next matching key sound until next pointer up event.
|
|
Locks sound context, which prevents other instances from bringing their sound contexts topmost. Only the first call is effective, i.e. if some other instance has already locked its own context, the function does nothing. This is used in system components, e.g. in key lock where key tones must be disabled while lock is active. |
|
Base class default constructor.
If a client application is derived from
|
|
Plays a sound corresponding to the given sound ID.
The ID can be an application specific ID or a system specific ID. System specific IDs are specified in Avkon enum
|
|
Plays a sound corresponding to the given key event. This is called directly by Avkon, though it can be used in other circumstances in order to play the correct sound associated with certain key presses.
|
|
Pops the top context from the key sound stack. |
|
Reads key sound context from resource file and pushes it to the sound stack.
All key presses for the application produce sounds as specified in this key sound context. The resource specified must be of the
|
|
Releases the context lock. After calling this method, all instances can freely modify their sound contexts again. The caller of the method can be some other instance than the instance that locked the context. |
|
Reads sound information from given Avkon sound ID. This method is intended for applications that need Avkon sound definitions for playing sounds with their own audio instances of Multimedia Framework (such applications should not read Avkon resources as the resource format can change without any notice but instead use this method).
|
|
Stops playing the sound with given ID. Does nothing if a sound matching the ID is not playing.
|
|
Returns top context id from the session.
|