Class ExtendedAudioFileReaderFromURL
Provides the ability to decode and read files from URL paths.
The reader does the best effort to decode to PCM - as such, all the audio
file data that you will recieve will not ever be compressed formats.
Uses the Audio Toolbox framework Extended Audio File Services API.
public sealed class ExtendedAudioFileReaderFromURL : ExtendedAudioFileServicesReader, IAsyncDisposable, IDisposable, IWaveProvider
- Inheritance
-
ExtendedAudioFileReaderFromURL
- Implements
- Inherited Members
- Extension Methods
Constructors
ExtendedAudioFileReaderFromURL(Uri, ExtendedAudioFileReaderSettings)
Initializes a new instance of the ExtendedAudioFileReaderFromURL class, specifying the URL to use, as well as the settings to apply to this reader.
public ExtendedAudioFileReaderFromURL(Uri URL, ExtendedAudioFileReaderSettings settings = null)
Parameters
URLUriThe URL to the audio file to initialize from.
settingsExtendedAudioFileReaderSettingsBehavioral settings to apply to the reader.
Methods
CreateFromFile(string, ExtendedAudioFileReaderSettings)
Initializes a new instance of the ExtendedAudioFileReaderFromURL class, specifying the file path to use, as well as the settings to apply to this reader.
public static ExtendedAudioFileReaderFromURL CreateFromFile(string filePath, ExtendedAudioFileReaderSettings settings = null)
Parameters
filePathstringThe file path to the audio file to initialize from.
settingsExtendedAudioFileReaderSettingsBehavioral settings to apply to the reader.
Returns
InitializeReader()
Implementations of this allow to initialize the Extended Audio File services reader from a source.
protected override nint InitializeReader()
Returns
- nint
Handle to an extended audio file.