VIAudioFile.file constructor
VIAudioFile.file(
- String? name,
- String? type, {
- VIAudioFileUsage usage = VIAudioFileUsage.unknown,
Constructs a VIAudioFile to play an audio from a file.
name
- Local audio file name
type
- Local audio file type/format, for example ".mp3"
usage
- Audio file usage mode. ANDROID ONLY.
On android, the audio file must be located in resources "raw" folder.
Implementation
VIAudioFile.file(
this.name,
this.type, {
VIAudioFileUsage usage = VIAudioFileUsage.unknown,
}) : _dataSource = _VIAudioFileDataSource.file,
_usage = usage,
url = null;