Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SoundPlayer Members

Controls playback of a sound from a .wav file.

The SoundPlayer type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework SoundPlayer Overloaded. Initializes a new instance of the SoundPlayer class.
Top

  NameDescription
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Supported by the .NET Compact Framework Dispose Overloaded.
Public method Supported by the .NET Compact Framework Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework Finalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public method Supported by the .NET Compact Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method GetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public method Supported by the .NET Compact Framework GetType Gets the type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method Supported by the .NET Compact Framework Load Loads a sound synchronously.
Public method Supported by the .NET Compact Framework LoadAsync Loads a .wav file from a stream or a Web resource using a new thread.
Protected method Supported by the .NET Compact Framework MemberwiseClone Overloaded.
Protected method Supported by the .NET Compact Framework OnLoadCompleted Raises the LoadCompleted event.
Protected method Supported by the .NET Compact Framework OnSoundLocationChanged Raises the SoundLocationChanged event.
Protected method Supported by the .NET Compact Framework OnStreamChanged Raises the StreamChanged event.
Public method Supported by the .NET Compact Framework Play Plays the .wav file using a new thread, and loads the .wav file first if it has not been loaded.
Public method Supported by the .NET Compact Framework PlayLooping Plays and loops the .wav file using a new thread, and loads the .wav file first if it has not been loaded.
Public method Supported by the .NET Compact Framework PlaySync Plays the .wav file and loads the .wav file first if it has not been loaded.
Public method Supported by the .NET Compact Framework Stop Stops playback of the sound if playback is occurring.
Public method Supported by the .NET Compact Framework ToString Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)

In .NET Compact Framework 3.5, this member is inherited from Object.ToString().
Top

  NameDescription
Protected property CanRaiseEvents Gets a value indicating whether the component can raise an event. (Inherited from Component.)
Public property Container Gets the IContainer that contains the Component. (Inherited from Component.)
Protected property DesignMode Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Protected property Supported by the .NET Compact Framework Events Gets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public property Supported by the .NET Compact Framework IsLoadCompleted Gets a value indicating whether loading of a .wav file has successfully completed.
Public property Supported by the .NET Compact Framework LoadTimeout Gets or sets the time, in milliseconds, in which the .wav file must load.
Public property Supported by the .NET Compact Framework Site Gets or sets the ISite of the Component. (Inherited from Component.)
Public property Supported by the .NET Compact Framework SoundLocation Gets or sets the file path or URL of the .wav file to load.
Public property Supported by the .NET Compact Framework Stream Gets or sets the Stream from which to load the .wav file.
Public property Supported by the .NET Compact Framework Tag Gets or sets the Object that contains data about the SoundPlayer.
Top

  NameDescription
Public event Supported by the .NET Compact Framework Disposed Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Public event Supported by the .NET Compact Framework LoadCompleted Occurs when a .wav file has been successfully or unsuccessfully loaded.
Public event Supported by the .NET Compact Framework SoundLocationChanged Occurs when a new audio source path for this SoundPlayer has been set.
Public event Supported by the .NET Compact Framework StreamChanged Occurs when a new Stream audio source for this SoundPlayer has been set.
Top

  NameDescription
Explicit interface implemetation Private method ISerializable.GetObjectData For a description of this member, see the ISerializable.GetObjectData method.
Top

Community Additions

ADD
Show:
© 2015 Microsoft