AudioReceiver class
A class for receiving audio data over WebSocket and handling playback and storage.
Constructors
- AudioReceiver({int port = 8081})
- Constructor for AudioReceiver that initializes the receiver with a specific port.
Properties
- audioChunkPlayer → AudioChunkPlayer
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- numChannels ↔ int
-
getter/setter pair
- port → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleRates ↔ int
-
getter/setter pair
Methods
-
addAudioChunk(
Uint8List chunk) → void - Function to add an audio chunk to the audio player.
-
handleIncomingUSBData(
Uint8List chunk) → void - Method to handle the incoming data from USB and pass it to the audio player.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setBalance(
double balance) → Future< void> - Sets the balance of the audio playback.
-
setVolume(
double volume) → Future< void> - Sets the volume of the audio playback.
-
stopServer(
) → Future< void> - Stops the WebSocket server and audio player.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited