paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Macros | Variables
wma_afh.c File Reference

The audio format handler for WMA files. More...

#include <sys/types.h>
#include <regex.h>
#include <iconv.h>
#include "para.h"
#include "error.h"
#include "afh.h"
#include "portable_io.h"
#include "string.h"
#include "wma.h"
#include "fd.h"

Macros

#define FOR_EACH_FRAME(_f, _buf, _size, _ps)
 
#define CHECK_HEADER(_p, _h)   (memcmp((_p), (_h), sizeof((_h))) == 0)
 

Variables

const struct audio_format_handler wma_afh
 The audio format handler for Windows Media Audio. More...
 

Detailed Description

The audio format handler for WMA files.

Macro Definition Documentation

◆ FOR_EACH_FRAME

#define FOR_EACH_FRAME (   _f,
  _buf,
  _size,
  _ps 
)
Value:
for (_f = (_buf); \
_f + (_ps) < (_buf) + (_size); \
_f += (_ps))

◆ CHECK_HEADER

#define CHECK_HEADER (   _p,
  _h 
)    (memcmp((_p), (_h), sizeof((_h))) == 0)

Variable Documentation

◆ wma_afh

const struct audio_format_handler wma_afh
Initial value:
= {
.get_file_info = wma_get_file_info,
.suffixes = wma_suffixes,
.rewrite_tags = wma_rewrite_tags,
}

The audio format handler for Windows Media Audio.

Only WMA version 2 is supported. This audio format handler does not depend on any third party libraries and is therefore always compiled in.