libextractor  1.11
About: GNU libextractor is a library used to extract meta-data from files of arbitrary type.
  Fossies Dox: libextractor-1.11.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

wav_extractor.c File Reference

plugin to support WAV files More...

#include "platform.h"
#include "extractor.h"
Include dependency graph for wav_extractor.c:

Go to the source code of this file.

Functions

void EXTRACTOR_wav_extract_method (struct EXTRACTOR_ExtractContext *ec)
 

Detailed Description

plugin to support WAV files

Author
Christian Grothoff

Definition in file wav_extractor.c.

Function Documentation

◆ EXTRACTOR_wav_extract_method()

void EXTRACTOR_wav_extract_method ( struct EXTRACTOR_ExtractContext ec)

Extract information from WAV files.

Parameters
ecextraction context

@detail A WAV header looks as follows:

Offset Value meaning 16 4 bytes 0x00000010 // Length of the fmt data (16 bytes) 20 2 bytes 0x0001 // Format tag: 1 = PCM 22 2 bytes <channels> // Channels: 1 = mono, 2 = stereo 24 4 bytes <sample rate> // Samples per second: e.g., 44100

Definition at line 75 of file wav_extractor.c.

References _, EXTRACTOR_ExtractContext::cls, EXTRACTOR_METAFORMAT_UTF8, EXTRACTOR_METATYPE_MIMETYPE, EXTRACTOR_METATYPE_RESOURCE_TYPE, EXTRACTOR_ExtractContext::proc, and EXTRACTOR_ExtractContext::read.