libmpcdec  1.2.2
Classes | Typedefs | Functions
streaminfo.h File Reference
#include <mpc/mpc_types.h>

Go to the source code of this file.

Classes

struct  mpc_streaminfo
 mpc stream properties structure More...

Typedefs

typedef mpc_int32_t mpc_streaminfo_off_t
typedef struct mpc_streaminfo mpc_streaminfo
 mpc stream properties structure

Functions

MPC_API double mpc_streaminfo_get_length (mpc_streaminfo *si)
MPC_API mpc_int64_t mpc_streaminfo_get_length_samples (mpc_streaminfo *si)

Detailed Description

Definition in file streaminfo.h.


Typedef Documentation

mpc stream properties structure

Structure containing all the properties of an mpc stream. Populated by the streaminfo_read function.


Function Documentation

MPC_API double mpc_streaminfo_get_length ( mpc_streaminfo si)

Gets length of stream si, in seconds.

Returns:
length of stream in seconds
MPC_API mpc_int64_t mpc_streaminfo_get_length_samples ( mpc_streaminfo si)

Returns length of stream si, in samples.

Returns:
length of stream in samples