Copyright © 2001-2013 MultiMedia Soft
GetFileType method
Remarks
Retrieves the format of the sound file loaded into the given player.
Syntax
[Visual Basic]
control.GetFileType (
nPlayer as Integer
) as enumFileTypes
[C++]
short control.GetFileType (
short nPlayer
);
Parameter
Description
nPlayer
Number representing the zero-based index of the involved player
Return value
Mnemonic constant
Value
Format
ERR_xxx
Negative
An error occurred (see the LastError property for further error details)
SOUNDTYPE_MP3
0
MP3
SOUNDTYPE_WAV
1
WAV
SOUNDTYPE_MP2
2
MP2
SOUNDTYPE_MP1
3
MP1
SOUNDTYPE_OGG
4
OGG Vorbis
SOUNDTYPE_WMA
5
Windows Media Audio
SOUNDTYPE_MOD
6
MOD Music
SOUNDTYPE_MTM
7
MTM MOD Music
SOUNDTYPE_S3M
8
S3M MOD Music
SOUNDTYPE_XM
9
XM MOD Music
SOUNDTYPE_IT
10
IT MOD Music
SOUNDTYPE_MO3
11
MO3 MOD Music
SOUNDTYPE_CD
12
CD Track
SOUNDTYPE_AIFF
13
AIFF
SOUNDTYPE_FLAC
14
FLAC
SOUNDTYPE_AAC
15
AAC
SOUNDTYPE_MP4
16
MP4
SOUNDTYPE_AC3
17
AC3
SOUNDTYPE_ALAC
18
ALAC
SOUNDTYPE_WV
19
WavPack
SOUNDTYPE_WAV_ENCODED
20
Encoded WAV
SOUNDTYPE_AU
21
Sun/NeXT AU
SOUNDTYPE_PAF
22
Ensoniq PARIS
SOUNDTYPE_SVX
23
Commodore Amiga IFF / SVX
SOUNDTYPE_NIST
24
Sphere NIST
SOUNDTYPE_VOC
25
Creative VOC
SOUNDTYPE_IRCAM
26
Berkeley/IRCAM/CARL
SOUNDTYPE_W64
27
Sonic Foundry's 64 bit RIFF/WAV
SOUNDTYPE_PVF
28
Portable Voice Format
SOUNDTYPE_CAF
29
Core Audio File
SOUNDTYPE_RAW
30
Raw file
SOUNDTYPE_APE
31
Monkey's audio
SOUNDTYPE_MPC
32
MusePack
SOUNDTYPE_SPX
33
Speex
SOUNDTYPE_MIDI
34
MIDI
SOUNDTYPE_MIDI_INSTRUMENT
35
MIDI instrument from VST plugin