setMusicPitch method
Adjust the pitch of background music
Parameters:
id
Music track ID
pitch
Pitch. Default value: 0.0f
. Value range: floating point number between [-1,1]
;
Platform not supported:
- web
Implementation
Future<void> setMusicPitch(int id, double pitch) {
return _channel
.invokeMethod('setMusicPitch', {"id": id, "pitch": pitch.toString()});
}