Copyright © 2005-2018 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]

Public Function FileInfoGet (

ByRef nFrequency as Int32,

ByRef nChannels as Int32,

ByRef nEncodeMode as enumRAWEncodeModes

) as Int32


 

[C#]

public Int32 FileInfoGet (

ref Int64 nFrequency,

ref Int64 nChannels,

ref enumRAWEncodeModes nEncodeMode

);


 

[C++]

public: Int32 FileInfoGet (

Int64 __gc *nFrequency,

Int64 __gc *nChannels,

enumRAWEncodeModes __gc *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.