Skip to content

MusicFormat.ReadAsync Method ​

Definition ​

Reads a music file asynchronously.

c#
public new Task<MusicFile> ReadAsync(Stream stream, CancellationToken cancellationToken = null);

Parameters ​

NameTypeDescription
streamStreamThe stream to read.
cancellationTokenCancellationTokenAn optional cancellation token.

Returns ​

Task<MusicFile>

The file read from the stream.