Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
SoundPlayer Class
 SoundPlayer Members

  Switch on low bandwidth view
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
SoundPlayer Members

Controls playback of a sound from a .wav file.

The SoundPlayer type exposes the following members.

  NameDescription
Public methodSupported by the .NET Compact FrameworkSoundPlayerOverloaded. Initializes a new instance of the SoundPlayer class.
Top
  NameDescription
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodSupported by the .NET Compact FrameworkDisposeOverloaded.
Public methodSupported by the .NET Compact FrameworkEquals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkFinalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public methodSupported by the .NET Compact FrameworkGetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodGetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public methodSupported by the .NET Compact FrameworkGetType Gets the Type of the current instance. (Inherited from Object.)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodSupported by the .NET Compact FrameworkLoad Loads a sound synchronously.
Public methodSupported by the .NET Compact FrameworkLoadAsync Loads a .wav file from a stream or a Web resource using a new thread.
Protected methodSupported by the .NET Compact FrameworkMemberwiseCloneOverloaded.
Protected methodSupported by the .NET Compact FrameworkOnLoadCompleted Raises the LoadCompleted event.
Protected methodSupported by the .NET Compact FrameworkOnSoundLocationChanged Raises the SoundLocationChanged event.
Protected methodSupported by the .NET Compact FrameworkOnStreamChanged Raises the StreamChanged event.
Public methodSupported by the .NET Compact FrameworkPlay Plays the .wav file using a new thread, and loads the .wav file first if it has not been loaded.
Public methodSupported by the .NET Compact FrameworkPlayLooping Plays and loops the .wav file using a new thread, and loads the .wav file first if it has not been loaded.
Public methodSupported by the .NET Compact FrameworkPlaySync Plays the .wav file and loads the .wav file first if it has not been loaded.
Public methodSupported by the .NET Compact FrameworkStop Stops playback of the sound if playback is occurring.
Public methodSupported by the .NET Compact FrameworkToStringOverloaded.
Top
  NameDescription
Protected propertyCanRaiseEvents Gets a value indicating whether the component can raise an event. (Inherited from Component.)
Public propertyContainer Gets the IContainer that contains the Component. (Inherited from Component.)
Protected propertyDesignMode Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Protected propertySupported by the .NET Compact FrameworkEvents Gets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public propertySupported by the .NET Compact FrameworkIsLoadCompleted Gets a value indicating whether loading of a .wav file has successfully completed.
Public propertySupported by the .NET Compact FrameworkLoadTimeout Gets or sets the time, in milliseconds, in which the .wav file must load.
Public propertySupported by the .NET Compact FrameworkSite Gets or sets the ISite of the Component. (Inherited from Component.)
Public propertySupported by the .NET Compact FrameworkSoundLocation Gets or sets the file path or URL of the .wav file to load.
Public propertySupported by the .NET Compact FrameworkStream Gets or sets the Stream from which to load the .wav file.
Public propertySupported by the .NET Compact FrameworkTag Gets or sets the Object that contains data about the SoundPlayer.
Top
  NameDescription
Public eventSupported by the .NET Compact FrameworkDisposed Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Public eventSupported by the .NET Compact FrameworkLoadCompleted Occurs when a .wav file has been successfully or unsuccessfully loaded.
Public eventSupported by the .NET Compact FrameworkSoundLocationChanged Occurs when a new audio source path for this SoundPlayer has been set.
Public eventSupported by the .NET Compact FrameworkStreamChanged Occurs when a new Stream audio source for this SoundPlayer has been set.
Top
  NameDescription
Explicit interface implemetationPrivate methodISerializable..::.GetObjectData For a description of this member, see the ISerializable..::.GetObjectData method.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker