src/include/xmms/xmms_sample.h File Reference

#include <glib.h>
#include "xmms/xmms_streamtype.h"

Go to the source code of this file.

Defines

#define XMMS_SAMPLES8_MIN   -128
#define XMMS_SAMPLES8_MAX   127
#define XMMS_SAMPLEU8_MAX   255
#define XMMS_SAMPLES16_MIN   -32768
#define XMMS_SAMPLES16_MAX   32767
#define XMMS_SAMPLEU16_MAX   65535
#define XMMS_SAMPLES32_MIN   (-2147483647L-1)
#define XMMS_SAMPLES32_MAX   2147483647L
#define XMMS_SAMPLEU32_MAX   4294967295UL

Typedefs

typedef struct
xmms_sample_converter_St 
xmms_sample_converter_t
typedef gint8 xmms_samples8_t
typedef guint8 xmms_sampleu8_t
typedef gint16 xmms_samples16_t
typedef guint16 xmms_sampleu16_t
typedef gint32 xmms_samples32_t
typedef guint32 xmms_sampleu32_t
typedef gfloat xmms_samplefloat_t
typedef gdouble xmms_sampledouble_t
typedef void xmms_sample_t

Enumerations

enum  xmms_sample_format_t {
  XMMS_SAMPLE_FORMAT_UNKNOWN, XMMS_SAMPLE_FORMAT_S8, XMMS_SAMPLE_FORMAT_U8, XMMS_SAMPLE_FORMAT_S16,
  XMMS_SAMPLE_FORMAT_U16, XMMS_SAMPLE_FORMAT_S32, XMMS_SAMPLE_FORMAT_U32, XMMS_SAMPLE_FORMAT_FLOAT,
  XMMS_SAMPLE_FORMAT_DOUBLE
}

Functions

guint xmms_sample_bytes_to_ms (const xmms_stream_type_t *st, guint samples)
 Convert from bytes to milliseconds for this format.

Define Documentation

#define XMMS_SAMPLES16_MAX   32767

Definition at line 48 of file xmms_sample.h.

#define XMMS_SAMPLES16_MIN   -32768

Definition at line 47 of file xmms_sample.h.

#define XMMS_SAMPLES32_MAX   2147483647L

Definition at line 53 of file xmms_sample.h.

#define XMMS_SAMPLES32_MIN   (-2147483647L-1)

Definition at line 52 of file xmms_sample.h.

#define XMMS_SAMPLES8_MAX   127

Definition at line 43 of file xmms_sample.h.

#define XMMS_SAMPLES8_MIN   -128

Definition at line 42 of file xmms_sample.h.

#define XMMS_SAMPLEU16_MAX   65535

Definition at line 50 of file xmms_sample.h.

#define XMMS_SAMPLEU32_MAX   4294967295UL

Definition at line 55 of file xmms_sample.h.

#define XMMS_SAMPLEU8_MAX   255

Definition at line 45 of file xmms_sample.h.


Typedef Documentation

typedef struct xmms_sample_converter_St xmms_sample_converter_t

Definition at line 38 of file xmms_sample.h.

typedef void xmms_sample_t

Definition at line 58 of file xmms_sample.h.

typedef gdouble xmms_sampledouble_t

Definition at line 57 of file xmms_sample.h.

typedef gfloat xmms_samplefloat_t

Definition at line 56 of file xmms_sample.h.

typedef gint16 xmms_samples16_t

Definition at line 46 of file xmms_sample.h.

typedef gint32 xmms_samples32_t

Definition at line 51 of file xmms_sample.h.

typedef gint8 xmms_samples8_t

Definition at line 41 of file xmms_sample.h.

typedef guint16 xmms_sampleu16_t

Definition at line 49 of file xmms_sample.h.

typedef guint32 xmms_sampleu32_t

Definition at line 54 of file xmms_sample.h.

typedef guint8 xmms_sampleu8_t

Definition at line 44 of file xmms_sample.h.


Enumeration Type Documentation

Enumerator:
XMMS_SAMPLE_FORMAT_UNKNOWN 
XMMS_SAMPLE_FORMAT_S8 
XMMS_SAMPLE_FORMAT_U8 
XMMS_SAMPLE_FORMAT_S16 
XMMS_SAMPLE_FORMAT_U16 
XMMS_SAMPLE_FORMAT_S32 
XMMS_SAMPLE_FORMAT_U32 
XMMS_SAMPLE_FORMAT_FLOAT 
XMMS_SAMPLE_FORMAT_DOUBLE 

Definition at line 25 of file xmms_sample.h.


Generated on Tue Feb 23 18:14:36 2010 for XMMS2 by  doxygen 1.6.1