Copyright © 2005-2018 MultiMedia Soft

SoundInfo2 class

Return to chapter overview

The SoundInfo2 class is used in conjunction with the SoundInfoGet method in order to obtain information about a loaded song and is implemented through the following properties

 

Property name

Property type

Meaning

nChannels

UInt32

The number of channels in the loaded song:

 

Value

Meaning

 

 

1

Mono

2

Stereo

4

Quadraphonic

6

5.1 Surround

8

7.1 Surround

nFileType

enumFileTypes

The format of the loaded song.

Supported values are the following:

Mnemonic constant

Value

Format

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

SOUNDTYPE_OPUS

36

Opus

SOUNDTYPE_EXT_PLUGIN_ADX

1000

ADX audio file loaded through the external BASS plugin Bass_adx.dll in combination with the BassPluginStreamCreateFunc method.

SOUNDTYPE_EXT_PLUGIN_AIX

1001

AIX audio file loaded through the external BASS plugin Bass_aix.dll in combination with the BassPluginStreamCreateFunc method.

SOUNDTYPE_EXT_PLUGIN_OFR

1002

OptinFROG audio file loaded through the external BASS plugin Bass_OFR.dll in combination with the BassPluginStreamCreateFunc method.

SOUNDTYPE_EXT_PLUGIN_TTA

1003

TTA audio file loaded through the external BASS plugin Bass_tta.dll in combination with the BassPluginStreamCreateFunc method.

nFrequency

UInt32

The playback rate of the loaded sound expressed in Hertz

nMP3StreamTypeLevel (*)

UInt32

The MPEG level:

0- MPEG 2.5

1- MPEG 1

2- MPEG 2

nMP3StreamTypeLayer (*)

UInt32

The MPEG layer

1- MPEG layer 1

2- MPEG layer 2

3- MPEG layer 3

nMP3StreamTypeBitRate (*)

UInt32

The Bitrate (number of bits per second)

nMP3StreamTypeMode (*)

UInt32

The MPEG mode

0- Stereo

1- Joint stereo

2- Dual channel

3- Single.channel

nMP3Frames (*)

UInt32

The number of MP3 frames

nMP3TagVersion (*)

enumTagId3Versions

The version of MP3 tag(s).

Supported value are the following:

Mnemonic constant

Value

Meaning

TAGVER_NONE

0

No tag available

TAGVER_1

1

Tag ID3V1 is available

TAGVER_11

2

Tag ID3V1.1 is available

TAGVER_2

3

Tag ID3V2 is available

TAGVER_1_2

4

Both tags ID3V1 and ID3V2 are available

TAGVER_11_2

5

Both tags ID3V1.1 and ID3V2 are available

nWAVBytesPerSec (**)

UInt32

Required average data-transfer rate, expressed in bytes per second, for the format tag.

nWAVBlockAlign (**)

UInt32

Block alignment, expressed in bytes. The block alignment is the minimum atomic unit of data for the nWavFormatTag format type.

nWAVBitsPerSample (**)

UInt32

Bits per sample for the nWavFormatTag format type.

nWAVFormatTag (**)

UInt32

Waveform-audio format type of the loaded WAV file. Format tags are registered with Microsoft Corporation for many compression algorithms.

Supported values are the following:

Microsoft defined mnemonic value

Numeric value

Manufacturer

 

-1

The loaded file is not a valid WAV

WAVE_FORMAT_UNKNOWN

0x0000

None

WAVE_FORMAT_PCM

0x0001

Microsoft Corporation

WAVE_FORMAT_ADPCM

0x0002

Microsoft Corporation

WAVE_FORMAT_IEEE_FLOAT

0x0003

Microsoft Corporation

WAVE_FORMAT_IBM_CVSD

0x0005

IBM Corporation

WAVE_FORMAT_ALAW

0x0006

Microsoft Corporation

WAVE_FORMAT_MULAW

0x0007

Microsoft Corporation

WAVE_FORMAT_OKI_ADPCM

0x0010

OKI

WAVE_FORMAT_DVI_ADPCM

0x0011

Intel Corporation

WAVE_FORMAT_MEDIASPACE_ADPCM

0x0012

Videologic

WAVE_FORMAT_SIERRA_ADPCM

0x0013

Sierra Semiconductor Corp

WAVE_FORMAT_G723_ADPCM

0x0014

Antex Electronics Corporation

WAVE_FORMAT_DIGISTD

0x0015

DSP Solutions, Inc.

WAVE_FORMAT_DIGIFIX

0x0016

DSP Solutions, Inc.

WAVE_FORMAT_DIALOGIC_OKI_ADPCM

0x0017

Dialogic Corporation

WAVE_FORMAT_MEDIAVISION_ADPCM

0x0018

Media Vision, Inc.

WAVE_FORMAT_YAMAHA_ADPCM

0x0020

Yamaha Corporation of America

WAVE_FORMAT_SONARC

0x0021

Speech Compression

WAVE_FORMAT_DSPGROUP_TRUESPEECH

0x0022

DSP Group, Inc.

WAVE_FORMAT_ECHOSC1

0x0023

Echo Speech Corporation

WAVE_FORMAT_AUDIOFILE_AF36

0x0024

Not defined

WAVE_FORMAT_APTX

0x0025

Audio Processing Technology

WAVE_FORMAT_AUDIOFILE_AF10

0x0026

Not defined

WAVE_FORMAT_DOLBY_AC2

0x0030

Dolby Laboratories

WAVE_FORMAT_GSM610

0x0031

Microsoft Corporation

WAVE_FORMAT_MSNAUDIO

0x0032

Microsoft Corporation

WAVE_FORMAT_ANTEX_ADPCME

0x0033

Antex Electronics Corporation

WAVE_FORMAT_CONTROL_RES_VQLPC

0x0034

Control Resources Limited

WAVE_FORMAT_DIGIREAL

0x0035

DSP Solutions, Inc.

WAVE_FORMAT_DIGIADPCM

0x0036

DSP Solutions, Inc.

WAVE_FORMAT_CONTROL_RES_CR10

0x0037

Control Resources Limited

WAVE_FORMAT_NMS_VBXADPCM

0x0038

Natural MicroSystems

WAVE_FORMAT_CS_IMAADPCM

0x0039

Crystal Semiconductor IMA ADPCM

WAVE_FORMAT_ECHOSC3

0x003A

Echo Speech Corporation

WAVE_FORMAT_ROCKWELL_ADPCM

0x003B

Rockwell International

WAVE_FORMAT_ROCKWELL_DIGITALK

0x003C

Rockwell International

WAVE_FORMAT_XEBEC

0x003D

Xebec Multimedia Solutions Limited

WAVE_FORMAT_G721_ADPCM

0x0040

Antex Electronics Corporation

WAVE_FORMAT_G728_CELP

0x0041

Antex Electronics Corporation

WAVE_FORMAT_MPEG

0x0050

Microsoft Corporation

WAVE_FORMAT_MPEGLAYER3

0x0055

ISO/MPEG Layer3 Format Tag

WAVE_FORMAT_CIRRUS

0x0060

Cirrus Logic

WAVE_FORMAT_ESPCM

0x0061

ESS Technology

WAVE_FORMAT_VOXWARE

0x0062

Voxware Inc.

WAVEFORMAT_CANOPUS_ATRAC

0x0063

Canopus, co., Ltd.

WAVE_FORMAT_G726_ADPCM

0x0064

APICOM

WAVE_FORMAT_G722_ADPCM

0x0065

APICOM

WAVE_FORMAT_DSAT

0x0066

Microsoft Corporation

WAVE_FORMAT_DSAT_DISPLAY

0x0067

Microsoft Corporation

WAVE_FORMAT_SOFTSOUND

0x0080

Softsound, Ltd.

WAVE_FORMAT_RHETOREX_ADPCM

0x0100

Rhetorex Inc.

WAVE_FORMAT_CREATIVE_ADPCM

0x0200

Creative Labs, Inc.

WAVE_FORMAT_CREATIVE_FASTSPEECH8

0x0202

Creative Labs, Inc.

WAVE_FORMAT_CREATIVE_FASTSPEECH10

0x0203

Creative Labs, Inc.

WAVE_FORMAT_QUARTERDECK

0x0220

Quarterdeck Corporation

WAVE_FORMAT_FM_TOWNS_SND

0x0300

Fujitsu Corp.

WAVE_FORMAT_BTV_DIGITAL

0x0400

Brooktree Corporation

WAVE_FORMAT_OLIGSM

0x1000

Ing C. Olivetti & C., S.p.A.

WAVE_FORMAT_OLIADPCM

0x1001

Ing C. Olivetti & C., S.p.A.

WAVE_FORMAT_OLICELP

0x1002

Ing C. Olivetti & C., S.p.A.

WAVE_FORMAT_OLISBC

0x1003

Ing C. Olivetti & C., S.p.A.

WAVE_FORMAT_OLIOPR

0x1004

Ing C. Olivetti & C., S.p.A.

WAVE_FORMAT_LH_CODEC

0x1100

Lernout & Hauspie

WAVE_FORMAT_NORRIS

0x1400

Norris Communications, Inc.

strWAVTagString (**)

string

Friendly string of the waveform-audio format type of the loaded WAV file. Format tags are registered with Microsoft Corporation for many compression algorithms.

strMP3Tag1Album (*)

string

ID3V1 tag Album

strMP3Tag1Title (*)

string

ID3V1 tag Title

strMP3Tag1Artist (*)

string

ID3V1 tag Artist

strMP3Tag1Year (*)

string

ID3V1 tag Year

strMP3Tag1Comment (*)

string

ID3V1 tag Comment

strMP3Tag1Track (*)

string

ID3V1 tag Track number

strMP3Tag1GenreCode (*)

string

ID3V1 tag Genre code

strMP3Tag1GenreString (*)

string

ID3V1 tag Genre string

strWMACodecString (***)

string

Codec used for encoding in WMA format

 

(*) The field is valid only if the loaded song is in MP3, MP2 or MP1 format

(**) The field is valid only if the loaded song is in WAV format

(***) The field is valid only if the loaded song is in WMA format