initialize method
Future<void>
initialize(
- RawSoundPlayerPrototype player, {
- int bufferSize = 4096 << 3,
- int nChannels = 1,
- int sampleRate = 16000,
- int pcmType = 0,
Implementation
Future<void> initialize(
RawSoundPlayerPrototype player, {
int bufferSize = 4096 << 3,
int nChannels = 1,
int sampleRate = 16000,
int pcmType = 0,
}) async {
final playerNo = await _channel.invokeMethod<int>('initialize', {
'bufferSize': bufferSize,
'nChannels': nChannels,
'sampleRate': sampleRate,
'pcmType': pcmType,
});
_players[player] = playerNo!;
}