RTP Audio System  2.0.0
mediainfo.h File Reference
#include "tools.h"

Go to the source code of this file.

Classes

struct  MediaInfo
 Media Info. More...

Enumerations

enum  MediaError {
  ME_NoError = 0, ME_NoMedia = 1, ME_EOF = 2, ME_UnrecoverableError = 20,
  ME_BadMedia = ME_UnrecoverableError + 0, ME_ReadError = ME_UnrecoverableError + 1, ME_OutOfMemory = ME_UnrecoverableError + 2
}

Functions

struct MediaInfo __attribute ((packed))
 MediaInfo ()
void reset ()
void translate ()
std::ostream & operator<< (std::ostream &os, const MediaInfo &mi)

Variables

const card64 PositionStepsPerSecond = (card64)1000000000
card64 StartTimeStamp
card64 EndTimeStamp
static const cardinal MaxTitleLength = 47
static const cardinal MaxArtistLength = 47
static const cardinal MaxCommentLength = 47
char Title [MaxTitleLength+1]
char Artist [MaxArtistLength+1]
char Comment [MaxCommentLength+1]

Enumeration Type Documentation

enum MediaError

Definition of encoder errors.

Enumerator:
ME_NoError 
ME_NoMedia 
ME_EOF 
ME_UnrecoverableError 
ME_BadMedia 
ME_ReadError 
ME_OutOfMemory 

Function Documentation

struct MediaInfo __attribute ( (packed)  )

Constructor.

std::ostream& operator<< ( std::ostream &  os,
const MediaInfo mi 
)

Output operator.

Reset.

Translate byte order.


Variable Documentation

Artist string.

Comment string.

End time stamp of the media.

const cardinal MaxArtistLength = 47 [static]

Constant for the maximum author length.

const cardinal MaxCommentLength = 47 [static]

Constant for the maximum comment length.

const cardinal MaxTitleLength = 47 [static]

Constant for the maximum title length.

const card64 PositionStepsPerSecond = (card64)1000000000

Constant for position steps per second: 1 step = 1 nanosecond;

Start time stamp of the media.

Title string.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines