.NET Framework Class Library
SoundPlayer Members

Controls playback of a sound from a .wav file.

The SoundPlayer type exposes the following members.

Constructors

  NameDescription
Public methodSupported by the .NET Compact FrameworkSoundPlayerOverloaded. Initializes a new instance of the SoundPlayer class.
Top
Methods

  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 FrameworkEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkFinalizeReleases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public methodSupported by the .NET Compact FrameworkGetHashCodeServes 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 methodGetServiceReturns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public methodSupported by the .NET Compact FrameworkGetTypeGets 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 FrameworkLoadLoads a sound synchronously.
Public methodSupported by the .NET Compact FrameworkLoadAsyncLoads 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 FrameworkOnLoadCompletedRaises the LoadCompleted event.
Protected methodSupported by the .NET Compact FrameworkOnSoundLocationChangedRaises the SoundLocationChanged event.
Protected methodSupported by the .NET Compact FrameworkOnStreamChangedRaises the StreamChanged event.
Public methodSupported by the .NET Compact FrameworkPlayPlays 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 FrameworkPlayLoopingPlays 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 FrameworkPlaySyncPlays the .wav file and loads the .wav file first if it has not been loaded.
Public methodSupported by the .NET Compact FrameworkStopStops playback of the sound if playback is occurring.
Public methodSupported by the .NET Compact FrameworkToStringOverloaded.
Top
Properties

  NameDescription
Protected propertyCanRaiseEventsGets a value indicating whether the component can raise an event. (Inherited from Component.)
Public propertyContainerGets the IContainer that contains the Component. (Inherited from Component.)
Protected propertyDesignModeGets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Protected propertySupported by the .NET Compact FrameworkEventsGets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public propertySupported by the .NET Compact FrameworkIsLoadCompletedGets a value indicating whether loading of a .wav file has successfully completed.
Public propertySupported by the .NET Compact FrameworkLoadTimeoutGets or sets the time, in milliseconds, in which the .wav file must load.
Public propertySupported by the .NET Compact FrameworkSiteGets or sets the ISite of the Component. (Inherited from Component.)
Public propertySupported by the .NET Compact FrameworkSoundLocationGets or sets the file path or URL of the .wav file to load.
Public propertySupported by the .NET Compact FrameworkStreamGets or sets the Stream from which to load the .wav file.
Public propertySupported by the .NET Compact FrameworkTagGets or sets the Object that contains data about the SoundPlayer.
Top
Events

  NameDescription
Public eventSupported by the .NET Compact FrameworkDisposedOccurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Public eventSupported by the .NET Compact FrameworkLoadCompletedOccurs when a .wav file has been successfully or unsuccessfully loaded.
Public eventSupported by the .NET Compact FrameworkSoundLocationChangedOccurs when a new audio source path for this SoundPlayer has been set.
Public eventSupported by the .NET Compact FrameworkStreamChangedOccurs when a new Stream audio source for this SoundPlayer has been set.
Top
Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate methodISerializable..::.GetObjectDataFor a description of this member, see the ISerializable..::.GetObjectData method.
Top
See Also

Reference

Tags :


Page view tracker