SoundSample class
Used to represent the mumble sound samples.
All sound samples are mono (one channel)!
Properties
Methods
-
load(
{BuildContext? context, AudioFormat format = AudioFormat.wav, AudioSampleRate sampleRate = AudioSampleRate.hz48000}) → Future< Uint8List> -
Loads the sample in the given
format
and with the givensampleRate
. The sample will always be mono (one channel)! -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stream(
{BuildContext? context, required int frameTimeMs, AudioFormat format = AudioFormat.s16le, AudioSampleRate sampleRate = AudioSampleRate.hz48000}) → Stream< Uint8List> -
Streams a sample in approximated real time in frames of duration
frameTimeMs
. The streamed data will always be mono (one channel)! -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- critical → const SoundSample
- Represents Critical.
- off → const SoundSample
- Represents Off.
- on → const SoundSample
- Represents On.
- permissionDenied → const SoundSample
- Represents PermissionDenied.
- recordingStateChanged → const SoundSample
- Represents RecordingStateChanged.
- selfMutedDeafened → const SoundSample
- Represents SelfMutedDeafened.
- serverConnected → const SoundSample
- Represents ServerConnected.
- serverDisconnected → const SoundSample
- Represents ServerDisconnected.
- textMessage → const SoundSample
- Represents TextMessage.
- userJoinedChannel → const SoundSample
- Represents UserJoinedChannel.
- userKickedYouOrByYou → const SoundSample
- Represents UserKickedYouOrByYou.
- userLeftChannel → const SoundSample
- Represents UserLeftChannel.
- userMutedYouOrByYou → const SoundSample
- Represents UserMutedYouOrByYou.