Copyright © 2001-2019 MultiMedia Soft

MediaFileDecoder.FileInfoGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains information about the decoded media file.

 

For details about management of media files decoding, refer to the How to decode media files tutorial.

 

 

Syntax

 

[Visual Basic]

control.MediaFileDecoder.FileInfoGet (

nFrequency as Long,

nChannels as Long,

nEncodeMode as enumRAWEncodeModes

) as enumErrorCodes


 

[C++]

short control.MediaFileDecoder.FileInfoGet (

long *nFrequency,

long *nChannels,

long *nEncodeMode

);


 

Parameter

Description

 

 

nFrequency

Reference that, on return from the method call, will contain the sample rate of the decoded file

nChannels

Reference that, on return from the method call, will contain the number of channels of the decoded file

nEncodeMode

Reference that, on return from the method call, will contain the encode mode (bit depth) used to internally store the decoded and uncompressed file: for RAW sound files, in most cases it may not reflect the original encode mode of the source file.

Supported values are the following:

Mnemonic constant

Numeric value

Meaning

RAW_ENCODE_PCM_U8

0

PCM 8 bits Unsigned

RAW_ENCODE_PCM_S16

2

PCM 16 bits Signed

RAW_ENCODE_FLOAT32

5

32 bits floating point

 

 

Return value

 

Value

Meaning

 

 

enumErrorCodes.NOERROR (0)

The method call successful.

Negative value

An error occurred: see the LastError property for further error details or for a list of the possible error values.