SoundGenerator class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
getPlatformVersion
→ Future<
String> -
Get PlatformVersion
no setter
-
getSampleRate
→ Future<
int> -
Get SampleRate
no setter
-
isPlaying
→ Future<
bool> -
Get is Playing data
no setter
-
onIsPlayingChanged
→ Stream<
bool> -
no setter
-
onOneCycleDataHandler
→ Stream<
List< int> > -
no setter
Static Methods
-
init(
int sampleRate) → Future< bool> - init function
-
play(
) → void - Play sound
-
refreshOneCycleData(
) → void - Refresh One Cycle Data
-
release(
) → void - Release all data
-
setAutoUpdateOneCycleSample(
bool autoUpdateOneCycleSample) → void - Set AutoUpdateOneCycleSample
-
setBalance(
double balance) → void - Set Balance Range from -1 to 1
-
setCleanStart(
bool cleanStart) → void - Set whether we start with a clean frequency on play
-
setFrequency(
double frequency) → void - Set Frequency
-
setVolume(
double volume) → void - Set Volume Range from 0 to 1
-
setWaveType(
waveTypes waveType) → void - Set WaveType
-
stop(
) → void - Stop playing sound