C# Class Geowigo.ViewModels.SoundManager

A manager for playing sounds.
ファイルを表示 Open project: WFoundation/WF.Player.WinPhone Class Usage Examples

Public Methods

Method Description
IsPlayableSound ( WF.Player.Core.Media media ) : bool

Determines if a media represents a sound that can be played by this SoundManager.

PlaySound ( string isoStoreFile ) : void

Plays a sounds from the isolated storage.

StopSounds ( ) : void

Stops currently playing sounds if any.

Private Methods

Method Description
EnsureSoundPlayerReady ( ) : bool
OnMediaEnded ( object sender, RoutedEventArgs e ) : void
OnMediaFailed ( object sender, System.Windows.ExceptionRoutedEventArgs e ) : void
OnMediaOpened ( object sender, RoutedEventArgs e ) : void
StopSoundsInternal ( ) : void

Method Details

IsPlayableSound() public static method

Determines if a media represents a sound that can be played by this SoundManager.
public static IsPlayableSound ( WF.Player.Core.Media media ) : bool
media WF.Player.Core.Media
return bool

PlaySound() public method

Plays a sounds from the isolated storage.
public PlaySound ( string isoStoreFile ) : void
isoStoreFile string Path to the isolated storage file.
return void

StopSounds() public method

Stops currently playing sounds if any.
public StopSounds ( ) : void
return void