VeLivePlayerAudioFrame.fromMap constructor
VeLivePlayerAudioFrame.fromMap(
- Map map
Implementation
factory VeLivePlayerAudioFrame.fromMap(Map<dynamic, dynamic> map) {
VeLivePlayerAudioBufferType? bufferType =
(map['bufferType'] as int).audioBufferType;
int? sampleRate = map['sampleRate'];
int? channels = map['channels'];
int? bitDepth = map['bitDepth'];
int? samples = map['samples'];
return VeLivePlayerAudioFrame(
bufferType: bufferType,
sampleRate: sampleRate,
channels: channels,
bitDepth: bitDepth,
samples: samples,
);
}