GetAudioType

<< Click to Display Table of Contents >>

Navigation:  Intraweb Components > Standard > TIWAudio > Methods >

GetAudioType

Returns the MIME type of the audio file, as a string, based on AudioFileName extension:

 

audio/mpeg, if the file is a mp3 audio file

audio/ogg, if the file is a ogg audio file

audio/wav, if the file is a wave audio file

 

SIGNATURE=IWCompAudio.TIWAudio.GetAudioType@string

 

ETYPE=Method

 

Declaration:

Delphi:

public class function GetAudioType(const AudioFileName: string): string;

C++:

public: __fastcall String GetAudioType(const String AudioFileName);

 

Description: This is GetAudioType, a member of class TIWAudio.

 

Parameters:

 

AudioFileName (string): The name of the audio file

 

Result: MIME type of the audio file