src/pcm_utils.h File Reference

#include <glib.h>
#include <stdint.h>

Go to the source code of this file.

Functions

static const void * pcm_end_pointer (const void *p, size_t size)
 Add a byte count to the specified pointer.
static int32_t pcm_range (int32_t sample, unsigned bits)
 Check if the value is within the range of the provided bit size, and caps it if necessary.
static int64_t pcm_range_64 (int64_t sample, unsigned bits)
 Check if the value is within the range of the provided bit size, and caps it if necessary.
static G_GNUC_CONST int16_t pcm_clamp_16 (int x)
static G_GNUC_CONST int32_t pcm_clamp_24 (int x)

Function Documentation

static G_GNUC_CONST int16_t pcm_clamp_16 ( int  x  )  [inline, static]

Definition at line 68 of file pcm_utils.h.

static G_GNUC_CONST int32_t pcm_clamp_24 ( int  x  )  [inline, static]

Definition at line 82 of file pcm_utils.h.

static const void* pcm_end_pointer ( const void *  p,
size_t  size 
) [inline, static]

Add a byte count to the specified pointer.

This is a utility function to convert a source pointer and a byte count to an "end" pointer for use in loops.

Definition at line 33 of file pcm_utils.h.

static int32_t pcm_range ( int32_t  sample,
unsigned  bits 
) [inline, static]

Check if the value is within the range of the provided bit size, and caps it if necessary.

Definition at line 43 of file pcm_utils.h.

static int64_t pcm_range_64 ( int64_t  sample,
unsigned  bits 
) [inline, static]

Check if the value is within the range of the provided bit size, and caps it if necessary.

Definition at line 57 of file pcm_utils.h.


Generated on 9 Aug 2013 for MPD by  doxygen 1.6.1