import "IToiAudioOverlayService.idl";
Public Member Functions | |
void | Play (in string file, in boolean loop) |
void | Stop () |
void | RegisterObserver (in IToiApplicationService::TToiApplicationId applicationId, in string address) raises (TToiInvalidArgumentException) |
void | ReleaseObserver (in string address) raises (TToiInvalidArgumentException) |
void IToiAudioOverlayService::Play | ( | in string | file, | |
in boolean | loop | |||
) |
Plays an audio file if the format is supported. Any current active playback will be stopped.
file | The audio file to play. | |
loop | Indicates wheter the audio should be looped. |
void IToiAudioOverlayService::RegisterObserver | ( | in IToiApplicationService::TToiApplicationId | applicationId, | |
in string | address | |||
) | raises (TToiInvalidArgumentException) |
Register an observer of type IToiAudioOverlayObserver. The observer will receive events sent by this IToiAudioOverlayService instance.
applicationId | The identifier of the observing application. | |
address | The address where the IToiAudioOverlayService can find an IToiAudioOverlayObserver interface. |
TToiInvalidArgumentException | Raised if the specified address is invalid or if the application has already registered itself as an observer with the same address. |
void IToiAudioOverlayService::ReleaseObserver | ( | in string | address | ) | raises (TToiInvalidArgumentException) |
Release an observer previously registered with RegisterObserver.
address | The address where the IToiAudioOverlayService can find the registered IToiAudioOverlayObserver interface. |
TToiInvalidArgumentException | Raised if the specified address is invalid. |
void IToiAudioOverlayService::Stop | ( | ) |
Stops any current active playback.