Click or drag to resize
Speaker Class
Class for playing audio through speakers.
Inheritance Hierarchy
SystemObject
  Ozeki.CommonDisposableClass
    Ozeki.MediaAbstractMediaReceiverAudioData, AudioFormat
      Ozeki.MediaAudioReceiver
        Ozeki.MediaSpeaker

Namespace: Ozeki.Media
Assembly: OzekiSDK (in OzekiSDK.dll) Version: 1.8.12.0 (1.8.12)
Syntax
public class Speaker : AudioReceiver, IAudioControl, 
	IMedia, ISpeaker, IAudioReceiver, IMediaReceiver<AudioData, AudioFormat>, 
	IDisposable

The Speaker type exposes the following members.

Constructors
  NameDescription
Protected methodSpeaker
Initializes a new instance of the Speaker class
Top
Methods
  NameDescription
Public methodChangeFormat
Changes the playback format of the device.
Public methodDispose
Disposes the object.
(Inherited from DisposableClass.)
Protected methodDispose(Boolean)
Disposes the object.
(Overrides DisposableClassDispose(Boolean).)
Public methodStatic memberDisposeDevices
Disposes the previously created and not disposed devices.
Protected methodFinalize
(Inherited from DisposableClass.)
Public methodStatic memberGetDefaultDevice
Retrieves the default playback device.
Public methodStatic memberGetDefaultDevice(AudioApi)
Retrieves the default playback device.
Public methodStatic memberGetDefaultDevice(AudioFormat)
Retrieves the default playback device with desired format.
Public methodStatic memberGetDefaultDevice(WaveformParams)
Retrieves the default playback device.
Public methodStatic memberGetDevice(AudioDeviceInfo)
Retrieves the specified playback device.
Public methodStatic memberGetDevice(AudioDeviceInfo, AudioApi)
Retrieves the specified playback device.
Public methodStatic memberGetDevice(AudioDeviceInfo, WaveformParams)
Retrieves the specified playback device.
Public methodStatic memberGetDevices
Retrieves the available playback devices.
Public methodStatic memberGetDevices(AudioApi)
Retrieves the available playback devices.
Public methodStatic memberGetDevicesCount
Retrieves the number of available playback devices.
Protected methodOnDataReceived (Overrides AbstractMediaReceiverTData, TFormatOnDataReceived(Object, TData).)
Protected methodSenderConnected (Inherited from AudioReceiver.)
Protected methodSenderDisconnected (Inherited from AudioReceiver.)
Protected methodSetReceiveFormats
Sets the audio formats that the audio handler can receive. If no audio format specified, all formats are supported.
(Inherited from AbstractMediaReceiverTData, TFormat.)
Public methodStart
Starts playing the audio from the speaker.
Public methodStop
Stops the playing.
Top
Properties
  NameDescription
Public propertyConverterType (Inherited from AudioReceiver.)
Public propertyDeviceInfo
Gets the product information of the speaker device.
Public propertyID (Inherited from DisposableClass.)
Public propertyInitialized
Returns a boolean value indicating whether the selected speaker device is ready.
Public propertyLevel
Gets the level of the speaker output. (Range: 0-100)
Public propertyMediaFormat
Gets the current audio format of the speaker.
Public propertyMuted
Gets or sets a boolean value indicating whether the speaker is muted.
Public propertyReceiveFormats
Gets a list of media formats that the media handler can handle. If no media format specified, all formats are supported.
(Inherited from AbstractMediaReceiverTData, TFormat.)
Public propertyState
Gets the state of the playback device.
Public propertyVolume
Gets or sets the volume of the speaker. (Range: 0-1)
Top
Events
  NameDescription
Public eventLevelChanged
Occurs when the speaker level has changed.
Public eventReceiveFormatsChanged
Occurs when an item is added or removed from the ReceiveFormats collection.
(Inherited from AbstractMediaReceiverTData, TFormat.)
Public eventStopped
Occurs when the speaker stopped playing.
Top
See Also