Xeno-rat
Loading...
Searching...
No Matches
xeno_rat_server.Forms.AudioPlayer Class Reference
Collaboration diagram for xeno_rat_server.Forms.AudioPlayer:

Public Member Functions

 AudioPlayer (WaveFormat waveFormat)
 
void Start ()
 Clears the buffer and starts playing audio.
 
void Stop ()
 Stops the audio playback and clears the buffer.
 
void Dispose ()
 Stops the audio playback and disposes of the resources used by the WaveOut player.
 
void AddAudio (byte[] audioData)
 Adds audio samples to the wave provider.
 

Private Attributes

BufferedWaveProvider waveProvider
 
WaveOutEvent waveOut
 

Constructor & Destructor Documentation

◆ AudioPlayer()

xeno_rat_server.Forms.AudioPlayer.AudioPlayer ( WaveFormat waveFormat)
inline
Here is the call graph for this function:

Member Function Documentation

◆ AddAudio()

void xeno_rat_server.Forms.AudioPlayer.AddAudio ( byte[] audioData)
inline

Adds audio samples to the wave provider.

Parameters
audioDataThe audio data to be added as byte array.

This method adds the provided audio samples to the wave provider for playback.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Dispose()

void xeno_rat_server.Forms.AudioPlayer.Dispose ( )
inline

Stops the audio playback and disposes of the resources used by the WaveOut player.

This method stops the audio playback and releases the resources used by the WaveOut player.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Start()

void xeno_rat_server.Forms.AudioPlayer.Start ( )
inline

Clears the buffer and starts playing audio.

This method clears the buffer of the wave provider and starts playing audio using the wave out device.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Stop()

void xeno_rat_server.Forms.AudioPlayer.Stop ( )
inline

Stops the audio playback and clears the buffer.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ waveOut

WaveOutEvent xeno_rat_server.Forms.AudioPlayer.waveOut
private

◆ waveProvider

BufferedWaveProvider xeno_rat_server.Forms.AudioPlayer.waveProvider
private

The documentation for this class was generated from the following file: