Table of Contents

Class SimpleSoundPlayer

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Controls playback of a sound from a audio file. This player supports only wav files. On Linux requires package osspd.

public class SimpleSoundPlayer : HandledObject<ISoundPlayerHandler>, IBaseObject, IDisposableObject, IDisposable, INotifyPropertyChanged
Inheritance
SimpleSoundPlayer
Implements

Constructors

SimpleSoundPlayer(string)

Initializes a new instance of the SimpleSoundPlayer class.

Properties

FileName

Gets filename of the audio file.

IsOk

Returns true if the object contains a successfully loaded file or resource, false otherwise.

Methods

CreateHandler()

Creates handler.

Play(SoundPlayFlags)

Plays the sound file.

Stop()

Stops playing sounds.