initialize method

Future<void> initialize(
  1. RawSoundPlayerPrototype player, {
  2. int bufferSize = 4096 << 3,
  3. int nChannels = 1,
  4. int sampleRate = 16000,
  5. 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!;
}