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
-
getSampleRate
→ Future<
int> -
Get SampleRate
no setter
-
isPlaying
→ Future<
bool> -
Get is Playing data
no setter
-
onIsPlayingChanged
→ Stream<
bool> -
no setter
-
onIsPlayingnoiseChanged
→ Stream<
bool> -
no setter
-
onOneCycleDataHandler
→ Stream<
List< int> > -
no setter
Static Methods
-
init(
int sampleRate) → Future< bool> - init function
-
play(
) → void - Play sound
-
play_calibration(
int frequency, int sampleRate, int actualVolume, int numSamples, int s) → Future< bool> - Play sound
-
play_noise(
int frequency, int sampleRate, int actualVolume, int numSamples, int s) → Future< bool> -
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
-
setDecibel(
double decibel) → void - Set decibel
-
setFrequency(
double frequency) → void - Set Frequency
-
setNoiseDecibel(
double decibel) → void - Set noisedecibel
-
setVolume(
double volume) → void - Set Volume Range from 0 to 1
-
setWaveType(
waveTypes waveType) → void - Set WaveType
-
stop(
) → void - Stop playing sound
-
stop_noise(
) → void - Stop playing noise