vkQuake2 doxygen  1.0 dev
dr_wav.h File Reference
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <stdio.h>
#include <assert.h>

Go to the source code of this file.

Classes

struct  drwav_chunk_header
 
struct  drwav__memory_stream
 
struct  drwav__memory_stream_write
 
struct  drwav_data_format
 
struct  drwav_fmt
 
struct  drwav_smpl_loop
 
struct  drwav_smpl
 
struct  drwav
 

Macros

#define DRWAV_TRUE   1
 
#define DRWAV_FALSE   0
 
#define DR_WAVE_FORMAT_PCM   0x1
 
#define DR_WAVE_FORMAT_ADPCM   0x2
 
#define DR_WAVE_FORMAT_IEEE_FLOAT   0x3
 
#define DR_WAVE_FORMAT_ALAW   0x6
 
#define DR_WAVE_FORMAT_MULAW   0x7
 
#define DR_WAVE_FORMAT_DVI_ADPCM   0x11
 
#define DR_WAVE_FORMAT_EXTENSIBLE   0xFFFE
 
#define DRWAV_MAX_SMPL_LOOPS   1
 
#define DRWAV_SEQUENTIAL   0x00000001
 

Typedefs

typedef int8_t drwav_int8
 
typedef uint8_t drwav_uint8
 
typedef int16_t drwav_int16
 
typedef uint16_t drwav_uint16
 
typedef int32_t drwav_int32
 
typedef uint32_t drwav_uint32
 
typedef int64_t drwav_int64
 
typedef uint64_t drwav_uint64
 
typedef drwav_uint8 drwav_bool8
 
typedef drwav_uint32 drwav_bool32
 
typedef size_t(* drwav_read_proc) (void *pUserData, void *pBufferOut, size_t bytesToRead)
 
typedef size_t(* drwav_write_proc) (void *pUserData, const void *pData, size_t bytesToWrite)
 
typedef drwav_bool32(* drwav_seek_proc) (void *pUserData, int offset, drwav_seek_origin origin)
 
typedef drwav_uint64(* drwav_chunk_proc) (void *pChunkUserData, drwav_read_proc onRead, drwav_seek_proc onSeek, void *pReadSeekUserData, const drwav_chunk_header *pChunkHeader)
 

Enumerations

enum  drwav_seek_origin { drwav_seek_origin_start, drwav_seek_origin_current }
 
enum  drwav_container { drwav_container_riff, drwav_container_w64 }
 

Functions

drwav_bool32 drwav_init (drwav *pWav, drwav_read_proc onRead, drwav_seek_proc onSeek, void *pUserData)
 
drwav_bool32 drwav_init_ex (drwav *pWav, drwav_read_proc onRead, drwav_seek_proc onSeek, drwav_chunk_proc onChunk, void *pReadSeekUserData, void *pChunkUserData, drwav_uint32 flags)
 
drwav_bool32 drwav_init_write (drwav *pWav, const drwav_data_format *pFormat, drwav_write_proc onWrite, drwav_seek_proc onSeek, void *pUserData)
 
drwav_bool32 drwav_init_write_sequential (drwav *pWav, const drwav_data_format *pFormat, drwav_uint64 totalSampleCount, drwav_write_proc onWrite, void *pUserData)
 
void drwav_uninit (drwav *pWav)
 
drwavdrwav_open (drwav_read_proc onRead, drwav_seek_proc onSeek, void *pUserData)
 
drwavdrwav_open_ex (drwav_read_proc onRead, drwav_seek_proc onSeek, drwav_chunk_proc onChunk, void *pReadSeekUserData, void *pChunkUserData, drwav_uint32 flags)
 
drwavdrwav_open_write (const drwav_data_format *pFormat, drwav_write_proc onWrite, drwav_seek_proc onSeek, void *pUserData)
 
drwavdrwav_open_write_sequential (const drwav_data_format *pFormat, drwav_uint64 totalSampleCount, drwav_write_proc onWrite, void *pUserData)
 
void drwav_close (drwav *pWav)
 
size_t drwav_read_raw (drwav *pWav, size_t bytesToRead, void *pBufferOut)
 
drwav_uint64 drwav_read_pcm_frames (drwav *pWav, drwav_uint64 framesToRead, void *pBufferOut)
 
drwav_bool32 drwav_seek_to_pcm_frame (drwav *pWav, drwav_uint64 targetFrameIndex)
 
size_t drwav_write_raw (drwav *pWav, size_t bytesToWrite, const void *pData)
 
drwav_uint64 drwav_write_pcm_frames (drwav *pWav, drwav_uint64 framesToWrite, const void *pData)
 
drwav_uint64 drwav_read_pcm_frames_s16 (drwav *pWav, drwav_uint64 framesToRead, drwav_int16 *pBufferOut)
 
void drwav_u8_to_s16 (drwav_int16 *pOut, const drwav_uint8 *pIn, size_t sampleCount)
 
void drwav_s24_to_s16 (drwav_int16 *pOut, const drwav_uint8 *pIn, size_t sampleCount)
 
void drwav_s32_to_s16 (drwav_int16 *pOut, const drwav_int32 *pIn, size_t sampleCount)
 
void drwav_f32_to_s16 (drwav_int16 *pOut, const float *pIn, size_t sampleCount)
 
void drwav_f64_to_s16 (drwav_int16 *pOut, const double *pIn, size_t sampleCount)
 
void drwav_alaw_to_s16 (drwav_int16 *pOut, const drwav_uint8 *pIn, size_t sampleCount)
 
void drwav_mulaw_to_s16 (drwav_int16 *pOut, const drwav_uint8 *pIn, size_t sampleCount)
 
drwav_uint64 drwav_read_pcm_frames_f32 (drwav *pWav, drwav_uint64 framesToRead, float *pBufferOut)
 
void drwav_u8_to_f32 (float *pOut, const drwav_uint8 *pIn, size_t sampleCount)
 
void drwav_s16_to_f32 (float *pOut, const drwav_int16 *pIn, size_t sampleCount)
 
void drwav_s24_to_f32 (float *pOut, const drwav_uint8 *pIn, size_t sampleCount)
 
void drwav_s32_to_f32 (float *pOut, const drwav_int32 *pIn, size_t sampleCount)
 
void drwav_f64_to_f32 (float *pOut, const double *pIn, size_t sampleCount)
 
void drwav_alaw_to_f32 (float *pOut, const drwav_uint8 *pIn, size_t sampleCount)
 
void drwav_mulaw_to_f32 (float *pOut, const drwav_uint8 *pIn, size_t sampleCount)
 
drwav_uint64 drwav_read_pcm_frames_s32 (drwav *pWav, drwav_uint64 framesToRead, drwav_int32 *pBufferOut)
 
void drwav_u8_to_s32 (drwav_int32 *pOut, const drwav_uint8 *pIn, size_t sampleCount)
 
void drwav_s16_to_s32 (drwav_int32 *pOut, const drwav_int16 *pIn, size_t sampleCount)
 
void drwav_s24_to_s32 (drwav_int32 *pOut, const drwav_uint8 *pIn, size_t sampleCount)
 
void drwav_f32_to_s32 (drwav_int32 *pOut, const float *pIn, size_t sampleCount)
 
void drwav_f64_to_s32 (drwav_int32 *pOut, const double *pIn, size_t sampleCount)
 
void drwav_alaw_to_s32 (drwav_int32 *pOut, const drwav_uint8 *pIn, size_t sampleCount)
 
void drwav_mulaw_to_s32 (drwav_int32 *pOut, const drwav_uint8 *pIn, size_t sampleCount)
 
drwav_bool32 drwav_init_file (drwav *pWav, const char *filename)
 
drwav_bool32 drwav_init_file_ex (drwav *pWav, const char *filename, drwav_chunk_proc onChunk, void *pChunkUserData, drwav_uint32 flags)
 
drwav_bool32 drwav_init_file_write (drwav *pWav, const char *filename, const drwav_data_format *pFormat)
 
drwav_bool32 drwav_init_file_write_sequential (drwav *pWav, const char *filename, const drwav_data_format *pFormat, drwav_uint64 totalSampleCount)
 
drwavdrwav_open_file (const char *filename)
 
drwavdrwav_open_file_ex (const char *filename, drwav_chunk_proc onChunk, void *pChunkUserData, drwav_uint32 flags)
 
drwavdrwav_open_file_write (const char *filename, const drwav_data_format *pFormat)
 
drwavdrwav_open_file_write_sequential (const char *filename, const drwav_data_format *pFormat, drwav_uint64 totalSampleCount)
 
drwav_bool32 drwav_init_memory (drwav *pWav, const void *data, size_t dataSize)
 
drwav_bool32 drwav_init_memory_ex (drwav *pWav, const void *data, size_t dataSize, drwav_chunk_proc onChunk, void *pChunkUserData, drwav_uint32 flags)
 
drwav_bool32 drwav_init_memory_write (drwav *pWav, void **ppData, size_t *pDataSize, const drwav_data_format *pFormat)
 
drwav_bool32 drwav_init_memory_write_sequential (drwav *pWav, void **ppData, size_t *pDataSize, const drwav_data_format *pFormat, drwav_uint64 totalSampleCount)
 
drwavdrwav_open_memory (const void *data, size_t dataSize)
 
drwavdrwav_open_memory_ex (const void *data, size_t dataSize, drwav_chunk_proc onChunk, void *pChunkUserData, drwav_uint32 flags)
 
drwavdrwav_open_memory_write (void **ppData, size_t *pDataSize, const drwav_data_format *pFormat)
 
drwavdrwav_open_memory_write_sequential (void **ppData, size_t *pDataSize, const drwav_data_format *pFormat, drwav_uint64 totalSampleCount)
 
drwav_int16drwav_open_and_read_pcm_frames_s16 (drwav_read_proc onRead, drwav_seek_proc onSeek, void *pUserData, unsigned int *channels, unsigned int *sampleRate, drwav_uint64 *totalFrameCount)
 
float * drwav_open_and_read_pcm_frames_f32 (drwav_read_proc onRead, drwav_seek_proc onSeek, void *pUserData, unsigned int *channels, unsigned int *sampleRate, drwav_uint64 *totalFrameCount)
 
drwav_int32drwav_open_and_read_pcm_frames_s32 (drwav_read_proc onRead, drwav_seek_proc onSeek, void *pUserData, unsigned int *channels, unsigned int *sampleRate, drwav_uint64 *totalFrameCount)
 
drwav_int16drwav_open_file_and_read_pcm_frames_s16 (const char *filename, unsigned int *channels, unsigned int *sampleRate, drwav_uint64 *totalFrameCount)
 
float * drwav_open_file_and_read_pcm_frames_f32 (const char *filename, unsigned int *channels, unsigned int *sampleRate, drwav_uint64 *totalFrameCount)
 
drwav_int32drwav_open_file_and_read_pcm_frames_s32 (const char *filename, unsigned int *channels, unsigned int *sampleRate, drwav_uint64 *totalFrameCount)
 
drwav_int16drwav_open_memory_and_read_pcm_frames_s16 (const void *data, size_t dataSize, unsigned int *channels, unsigned int *sampleRate, drwav_uint64 *totalFrameCount)
 
float * drwav_open_memory_and_read_pcm_frames_f32 (const void *data, size_t dataSize, unsigned int *channels, unsigned int *sampleRate, drwav_uint64 *totalFrameCount)
 
drwav_int32drwav_open_memory_and_read_pcm_frames_s32 (const void *data, size_t dataSize, unsigned int *channels, unsigned int *sampleRate, drwav_uint64 *totalFrameCount)
 
void drwav_free (void *pDataReturnedByOpenAndRead)
 
drwav_uint64 drwav_read (drwav *pWav, drwav_uint64 samplesToRead, void *pBufferOut)
 
drwav_uint64 drwav_read_s16 (drwav *pWav, drwav_uint64 samplesToRead, drwav_int16 *pBufferOut)
 
drwav_uint64 drwav_read_f32 (drwav *pWav, drwav_uint64 samplesToRead, float *pBufferOut)
 
drwav_uint64 drwav_read_s32 (drwav *pWav, drwav_uint64 samplesToRead, drwav_int32 *pBufferOut)
 
drwav_bool32 drwav_seek_to_sample (drwav *pWav, drwav_uint64 sample)
 
drwav_uint64 drwav_write (drwav *pWav, drwav_uint64 samplesToWrite, const void *pData)
 
drwav_int16drwav_open_and_read_s16 (drwav_read_proc onRead, drwav_seek_proc onSeek, void *pUserData, unsigned int *channels, unsigned int *sampleRate, drwav_uint64 *totalSampleCount)
 
float * drwav_open_and_read_f32 (drwav_read_proc onRead, drwav_seek_proc onSeek, void *pUserData, unsigned int *channels, unsigned int *sampleRate, drwav_uint64 *totalSampleCount)
 
drwav_int32drwav_open_and_read_s32 (drwav_read_proc onRead, drwav_seek_proc onSeek, void *pUserData, unsigned int *channels, unsigned int *sampleRate, drwav_uint64 *totalSampleCount)
 
drwav_int16drwav_open_memory_and_read_s16 (const void *data, size_t dataSize, unsigned int *channels, unsigned int *sampleRate, drwav_uint64 *totalSampleCount)
 
float * drwav_open_file_and_read_f32 (const char *filename, unsigned int *channels, unsigned int *sampleRate, drwav_uint64 *totalSampleCount)
 
drwav_int32drwav_open_file_and_read_s32 (const char *filename, unsigned int *channels, unsigned int *sampleRate, drwav_uint64 *totalSampleCount)
 
float * drwav_open_memory_and_read_f32 (const void *data, size_t dataSize, unsigned int *channels, unsigned int *sampleRate, drwav_uint64 *totalSampleCount)
 
drwav_int32drwav_open_memory_and_read_s32 (const void *data, size_t dataSize, unsigned int *channels, unsigned int *sampleRate, drwav_uint64 *totalSampleCount)
 

Macro Definition Documentation

◆ DR_WAVE_FORMAT_ADPCM

#define DR_WAVE_FORMAT_ADPCM   0x2

Definition at line 189 of file dr_wav.h.

◆ DR_WAVE_FORMAT_ALAW

#define DR_WAVE_FORMAT_ALAW   0x6

Definition at line 191 of file dr_wav.h.

◆ DR_WAVE_FORMAT_DVI_ADPCM

#define DR_WAVE_FORMAT_DVI_ADPCM   0x11

Definition at line 193 of file dr_wav.h.

◆ DR_WAVE_FORMAT_EXTENSIBLE

#define DR_WAVE_FORMAT_EXTENSIBLE   0xFFFE

Definition at line 194 of file dr_wav.h.

◆ DR_WAVE_FORMAT_IEEE_FLOAT

#define DR_WAVE_FORMAT_IEEE_FLOAT   0x3

Definition at line 190 of file dr_wav.h.

◆ DR_WAVE_FORMAT_MULAW

#define DR_WAVE_FORMAT_MULAW   0x7

Definition at line 192 of file dr_wav.h.

◆ DR_WAVE_FORMAT_PCM

#define DR_WAVE_FORMAT_PCM   0x1

Definition at line 188 of file dr_wav.h.

◆ DRWAV_FALSE

#define DRWAV_FALSE   0

Definition at line 181 of file dr_wav.h.

◆ DRWAV_MAX_SMPL_LOOPS

#define DRWAV_MAX_SMPL_LOOPS   1

Definition at line 198 of file dr_wav.h.

◆ DRWAV_SEQUENTIAL

#define DRWAV_SEQUENTIAL   0x00000001

Definition at line 202 of file dr_wav.h.

◆ DRWAV_TRUE

#define DRWAV_TRUE   1

Definition at line 180 of file dr_wav.h.

Typedef Documentation

◆ drwav_bool32

Definition at line 179 of file dr_wav.h.

◆ drwav_bool8

Definition at line 178 of file dr_wav.h.

◆ drwav_chunk_proc

typedef drwav_uint64(* drwav_chunk_proc) (void *pChunkUserData, drwav_read_proc onRead, drwav_seek_proc onSeek, void *pReadSeekUserData, const drwav_chunk_header *pChunkHeader)

Definition at line 291 of file dr_wav.h.

◆ drwav_int16

typedef int16_t drwav_int16

Definition at line 171 of file dr_wav.h.

◆ drwav_int32

typedef int32_t drwav_int32

Definition at line 173 of file dr_wav.h.

◆ drwav_int64

typedef int64_t drwav_int64

Definition at line 175 of file dr_wav.h.

◆ drwav_int8

typedef int8_t drwav_int8

Definition at line 169 of file dr_wav.h.

◆ drwav_read_proc

typedef size_t(* drwav_read_proc) (void *pUserData, void *pBufferOut, size_t bytesToRead)

Definition at line 246 of file dr_wav.h.

◆ drwav_seek_proc

typedef drwav_bool32(* drwav_seek_proc) (void *pUserData, int offset, drwav_seek_origin origin)

Definition at line 273 of file dr_wav.h.

◆ drwav_uint16

typedef uint16_t drwav_uint16

Definition at line 172 of file dr_wav.h.

◆ drwav_uint32

typedef uint32_t drwav_uint32

Definition at line 174 of file dr_wav.h.

◆ drwav_uint64

typedef uint64_t drwav_uint64

Definition at line 176 of file dr_wav.h.

◆ drwav_uint8

typedef uint8_t drwav_uint8

Definition at line 170 of file dr_wav.h.

◆ drwav_write_proc

typedef size_t(* drwav_write_proc) (void *pUserData, const void *pData, size_t bytesToWrite)

Definition at line 259 of file dr_wav.h.

Enumeration Type Documentation

◆ drwav_container

Enumerator
drwav_container_riff 
drwav_container_w64 

Definition at line 210 of file dr_wav.h.

◆ drwav_seek_origin

Enumerator
drwav_seek_origin_start 
drwav_seek_origin_current 

Definition at line 204 of file dr_wav.h.

Function Documentation

◆ drwav_alaw_to_f32()

void drwav_alaw_to_f32 ( float *  pOut,
const drwav_uint8 pIn,
size_t  sampleCount 
)

◆ drwav_alaw_to_s16()

void drwav_alaw_to_s16 ( drwav_int16 pOut,
const drwav_uint8 pIn,
size_t  sampleCount 
)

◆ drwav_alaw_to_s32()

void drwav_alaw_to_s32 ( drwav_int32 pOut,
const drwav_uint8 pIn,
size_t  sampleCount 
)

◆ drwav_close()

void drwav_close ( drwav pWav)

◆ drwav_f32_to_s16()

void drwav_f32_to_s16 ( drwav_int16 pOut,
const float *  pIn,
size_t  sampleCount 
)

◆ drwav_f32_to_s32()

void drwav_f32_to_s32 ( drwav_int32 pOut,
const float *  pIn,
size_t  sampleCount 
)

◆ drwav_f64_to_f32()

void drwav_f64_to_f32 ( float *  pOut,
const double *  pIn,
size_t  sampleCount 
)

◆ drwav_f64_to_s16()

void drwav_f64_to_s16 ( drwav_int16 pOut,
const double *  pIn,
size_t  sampleCount 
)

◆ drwav_f64_to_s32()

void drwav_f64_to_s32 ( drwav_int32 pOut,
const double *  pIn,
size_t  sampleCount 
)

◆ drwav_free()

void drwav_free ( void pDataReturnedByOpenAndRead)

◆ drwav_init()

drwav_bool32 drwav_init ( drwav pWav,
drwav_read_proc  onRead,
drwav_seek_proc  onSeek,
void pUserData 
)

◆ drwav_init_ex()

drwav_bool32 drwav_init_ex ( drwav pWav,
drwav_read_proc  onRead,
drwav_seek_proc  onSeek,
drwav_chunk_proc  onChunk,
void pReadSeekUserData,
void pChunkUserData,
drwav_uint32  flags 
)

◆ drwav_init_file()

drwav_bool32 drwav_init_file ( drwav pWav,
const char *  filename 
)

◆ drwav_init_file_ex()

drwav_bool32 drwav_init_file_ex ( drwav pWav,
const char *  filename,
drwav_chunk_proc  onChunk,
void pChunkUserData,
drwav_uint32  flags 
)

◆ drwav_init_file_write()

drwav_bool32 drwav_init_file_write ( drwav pWav,
const char *  filename,
const drwav_data_format pFormat 
)

◆ drwav_init_file_write_sequential()

drwav_bool32 drwav_init_file_write_sequential ( drwav pWav,
const char *  filename,
const drwav_data_format pFormat,
drwav_uint64  totalSampleCount 
)

◆ drwav_init_memory()

drwav_bool32 drwav_init_memory ( drwav pWav,
const void data,
size_t  dataSize 
)

◆ drwav_init_memory_ex()

drwav_bool32 drwav_init_memory_ex ( drwav pWav,
const void data,
size_t  dataSize,
drwav_chunk_proc  onChunk,
void pChunkUserData,
drwav_uint32  flags 
)

◆ drwav_init_memory_write()

drwav_bool32 drwav_init_memory_write ( drwav pWav,
void **  ppData,
size_t *  pDataSize,
const drwav_data_format pFormat 
)

◆ drwav_init_memory_write_sequential()

drwav_bool32 drwav_init_memory_write_sequential ( drwav pWav,
void **  ppData,
size_t *  pDataSize,
const drwav_data_format pFormat,
drwav_uint64  totalSampleCount 
)

◆ drwav_init_write()

drwav_bool32 drwav_init_write ( drwav pWav,
const drwav_data_format pFormat,
drwav_write_proc  onWrite,
drwav_seek_proc  onSeek,
void pUserData 
)

◆ drwav_init_write_sequential()

drwav_bool32 drwav_init_write_sequential ( drwav pWav,
const drwav_data_format pFormat,
drwav_uint64  totalSampleCount,
drwav_write_proc  onWrite,
void pUserData 
)

◆ drwav_mulaw_to_f32()

void drwav_mulaw_to_f32 ( float *  pOut,
const drwav_uint8 pIn,
size_t  sampleCount 
)

◆ drwav_mulaw_to_s16()

void drwav_mulaw_to_s16 ( drwav_int16 pOut,
const drwav_uint8 pIn,
size_t  sampleCount 
)

◆ drwav_mulaw_to_s32()

void drwav_mulaw_to_s32 ( drwav_int32 pOut,
const drwav_uint8 pIn,
size_t  sampleCount 
)

◆ drwav_open()

drwav* drwav_open ( drwav_read_proc  onRead,
drwav_seek_proc  onSeek,
void pUserData 
)

◆ drwav_open_and_read_f32()

float* drwav_open_and_read_f32 ( drwav_read_proc  onRead,
drwav_seek_proc  onSeek,
void pUserData,
unsigned int channels,
unsigned int sampleRate,
drwav_uint64 totalSampleCount 
)

◆ drwav_open_and_read_pcm_frames_f32()

float* drwav_open_and_read_pcm_frames_f32 ( drwav_read_proc  onRead,
drwav_seek_proc  onSeek,
void pUserData,
unsigned int channels,
unsigned int sampleRate,
drwav_uint64 totalFrameCount 
)

◆ drwav_open_and_read_pcm_frames_s16()

drwav_int16* drwav_open_and_read_pcm_frames_s16 ( drwav_read_proc  onRead,
drwav_seek_proc  onSeek,
void pUserData,
unsigned int channels,
unsigned int sampleRate,
drwav_uint64 totalFrameCount 
)

◆ drwav_open_and_read_pcm_frames_s32()

drwav_int32* drwav_open_and_read_pcm_frames_s32 ( drwav_read_proc  onRead,
drwav_seek_proc  onSeek,
void pUserData,
unsigned int channels,
unsigned int sampleRate,
drwav_uint64 totalFrameCount 
)

◆ drwav_open_and_read_s16()

drwav_int16* drwav_open_and_read_s16 ( drwav_read_proc  onRead,
drwav_seek_proc  onSeek,
void pUserData,
unsigned int channels,
unsigned int sampleRate,
drwav_uint64 totalSampleCount 
)

◆ drwav_open_and_read_s32()

drwav_int32* drwav_open_and_read_s32 ( drwav_read_proc  onRead,
drwav_seek_proc  onSeek,
void pUserData,
unsigned int channels,
unsigned int sampleRate,
drwav_uint64 totalSampleCount 
)

◆ drwav_open_ex()

drwav* drwav_open_ex ( drwav_read_proc  onRead,
drwav_seek_proc  onSeek,
drwav_chunk_proc  onChunk,
void pReadSeekUserData,
void pChunkUserData,
drwav_uint32  flags 
)

◆ drwav_open_file()

drwav* drwav_open_file ( const char *  filename)

◆ drwav_open_file_and_read_f32()

float* drwav_open_file_and_read_f32 ( const char *  filename,
unsigned int channels,
unsigned int sampleRate,
drwav_uint64 totalSampleCount 
)

◆ drwav_open_file_and_read_pcm_frames_f32()

float* drwav_open_file_and_read_pcm_frames_f32 ( const char *  filename,
unsigned int channels,
unsigned int sampleRate,
drwav_uint64 totalFrameCount 
)

◆ drwav_open_file_and_read_pcm_frames_s16()

drwav_int16* drwav_open_file_and_read_pcm_frames_s16 ( const char *  filename,
unsigned int channels,
unsigned int sampleRate,
drwav_uint64 totalFrameCount 
)

◆ drwav_open_file_and_read_pcm_frames_s32()

drwav_int32* drwav_open_file_and_read_pcm_frames_s32 ( const char *  filename,
unsigned int channels,
unsigned int sampleRate,
drwav_uint64 totalFrameCount 
)

◆ drwav_open_file_and_read_s32()

drwav_int32* drwav_open_file_and_read_s32 ( const char *  filename,
unsigned int channels,
unsigned int sampleRate,
drwav_uint64 totalSampleCount 
)

◆ drwav_open_file_ex()

drwav* drwav_open_file_ex ( const char *  filename,
drwav_chunk_proc  onChunk,
void pChunkUserData,
drwav_uint32  flags 
)

◆ drwav_open_file_write()

drwav* drwav_open_file_write ( const char *  filename,
const drwav_data_format pFormat 
)

◆ drwav_open_file_write_sequential()

drwav* drwav_open_file_write_sequential ( const char *  filename,
const drwav_data_format pFormat,
drwav_uint64  totalSampleCount 
)

◆ drwav_open_memory()

drwav* drwav_open_memory ( const void data,
size_t  dataSize 
)

◆ drwav_open_memory_and_read_f32()

float* drwav_open_memory_and_read_f32 ( const void data,
size_t  dataSize,
unsigned int channels,
unsigned int sampleRate,
drwav_uint64 totalSampleCount 
)

◆ drwav_open_memory_and_read_pcm_frames_f32()

float* drwav_open_memory_and_read_pcm_frames_f32 ( const void data,
size_t  dataSize,
unsigned int channels,
unsigned int sampleRate,
drwav_uint64 totalFrameCount 
)

◆ drwav_open_memory_and_read_pcm_frames_s16()

drwav_int16* drwav_open_memory_and_read_pcm_frames_s16 ( const void data,
size_t  dataSize,
unsigned int channels,
unsigned int sampleRate,
drwav_uint64 totalFrameCount 
)

◆ drwav_open_memory_and_read_pcm_frames_s32()

drwav_int32* drwav_open_memory_and_read_pcm_frames_s32 ( const void data,
size_t  dataSize,
unsigned int channels,
unsigned int sampleRate,
drwav_uint64 totalFrameCount 
)

◆ drwav_open_memory_and_read_s16()

drwav_int16 * drwav_open_memory_and_read_s16 ( const void data,
size_t  dataSize,
unsigned int channels,
unsigned int sampleRate,
drwav_uint64 totalSampleCount 
)

◆ drwav_open_memory_and_read_s32()

drwav_int32* drwav_open_memory_and_read_s32 ( const void data,
size_t  dataSize,
unsigned int channels,
unsigned int sampleRate,
drwav_uint64 totalSampleCount 
)

◆ drwav_open_memory_ex()

drwav* drwav_open_memory_ex ( const void data,
size_t  dataSize,
drwav_chunk_proc  onChunk,
void pChunkUserData,
drwav_uint32  flags 
)

◆ drwav_open_memory_write()

drwav* drwav_open_memory_write ( void **  ppData,
size_t *  pDataSize,
const drwav_data_format pFormat 
)

◆ drwav_open_memory_write_sequential()

drwav* drwav_open_memory_write_sequential ( void **  ppData,
size_t *  pDataSize,
const drwav_data_format pFormat,
drwav_uint64  totalSampleCount 
)

◆ drwav_open_write()

drwav* drwav_open_write ( const drwav_data_format pFormat,
drwav_write_proc  onWrite,
drwav_seek_proc  onSeek,
void pUserData 
)

◆ drwav_open_write_sequential()

drwav* drwav_open_write_sequential ( const drwav_data_format pFormat,
drwav_uint64  totalSampleCount,
drwav_write_proc  onWrite,
void pUserData 
)

◆ drwav_read()

drwav_uint64 drwav_read ( drwav pWav,
drwav_uint64  samplesToRead,
void pBufferOut 
)

◆ drwav_read_f32()

drwav_uint64 drwav_read_f32 ( drwav pWav,
drwav_uint64  samplesToRead,
float *  pBufferOut 
)

◆ drwav_read_pcm_frames()

drwav_uint64 drwav_read_pcm_frames ( drwav pWav,
drwav_uint64  framesToRead,
void pBufferOut 
)

◆ drwav_read_pcm_frames_f32()

drwav_uint64 drwav_read_pcm_frames_f32 ( drwav pWav,
drwav_uint64  framesToRead,
float *  pBufferOut 
)

◆ drwav_read_pcm_frames_s16()

drwav_uint64 drwav_read_pcm_frames_s16 ( drwav pWav,
drwav_uint64  framesToRead,
drwav_int16 pBufferOut 
)

◆ drwav_read_pcm_frames_s32()

drwav_uint64 drwav_read_pcm_frames_s32 ( drwav pWav,
drwav_uint64  framesToRead,
drwav_int32 pBufferOut 
)

◆ drwav_read_raw()

size_t drwav_read_raw ( drwav pWav,
size_t  bytesToRead,
void pBufferOut 
)

◆ drwav_read_s16()

drwav_uint64 drwav_read_s16 ( drwav pWav,
drwav_uint64  samplesToRead,
drwav_int16 pBufferOut 
)

◆ drwav_read_s32()

drwav_uint64 drwav_read_s32 ( drwav pWav,
drwav_uint64  samplesToRead,
drwav_int32 pBufferOut 
)

◆ drwav_s16_to_f32()

void drwav_s16_to_f32 ( float *  pOut,
const drwav_int16 pIn,
size_t  sampleCount 
)

◆ drwav_s16_to_s32()

void drwav_s16_to_s32 ( drwav_int32 pOut,
const drwav_int16 pIn,
size_t  sampleCount 
)

◆ drwav_s24_to_f32()

void drwav_s24_to_f32 ( float *  pOut,
const drwav_uint8 pIn,
size_t  sampleCount 
)

◆ drwav_s24_to_s16()

void drwav_s24_to_s16 ( drwav_int16 pOut,
const drwav_uint8 pIn,
size_t  sampleCount 
)

◆ drwav_s24_to_s32()

void drwav_s24_to_s32 ( drwav_int32 pOut,
const drwav_uint8 pIn,
size_t  sampleCount 
)

◆ drwav_s32_to_f32()

void drwav_s32_to_f32 ( float *  pOut,
const drwav_int32 pIn,
size_t  sampleCount 
)

◆ drwav_s32_to_s16()

void drwav_s32_to_s16 ( drwav_int16 pOut,
const drwav_int32 pIn,
size_t  sampleCount 
)

◆ drwav_seek_to_pcm_frame()

drwav_bool32 drwav_seek_to_pcm_frame ( drwav pWav,
drwav_uint64  targetFrameIndex 
)

◆ drwav_seek_to_sample()

drwav_bool32 drwav_seek_to_sample ( drwav pWav,
drwav_uint64  sample 
)

◆ drwav_u8_to_f32()

void drwav_u8_to_f32 ( float *  pOut,
const drwav_uint8 pIn,
size_t  sampleCount 
)

◆ drwav_u8_to_s16()

void drwav_u8_to_s16 ( drwav_int16 pOut,
const drwav_uint8 pIn,
size_t  sampleCount 
)

◆ drwav_u8_to_s32()

void drwav_u8_to_s32 ( drwav_int32 pOut,
const drwav_uint8 pIn,
size_t  sampleCount 
)

◆ drwav_uninit()

void drwav_uninit ( drwav pWav)

◆ drwav_write()

drwav_uint64 drwav_write ( drwav pWav,
drwav_uint64  samplesToWrite,
const void pData 
)

◆ drwav_write_pcm_frames()

drwav_uint64 drwav_write_pcm_frames ( drwav pWav,
drwav_uint64  framesToWrite,
const void pData 
)

◆ drwav_write_raw()

size_t drwav_write_raw ( drwav pWav,
size_t  bytesToWrite,
const void pData 
)
drwav_seek_origin
drwav_seek_origin
Definition: dr_wav.h:204
drwav_seek_origin_current
@ drwav_seek_origin_current
Definition: dr_wav.h:207
drwav_container
drwav_container
Definition: dr_wav.h:210
drwav_seek_origin_start
@ drwav_seek_origin_start
Definition: dr_wav.h:206
drwav_container_w64
@ drwav_container_w64
Definition: dr_wav.h:213
drwav_container_riff
@ drwav_container_riff
Definition: dr_wav.h:212