2011-08-20 01:22:19 +00:00
|
|
|
/*
|
2011-08-21 17:27:11 +00:00
|
|
|
Simple C interface for XAudio2
|
|
|
|
Author: Hans-Kristian Arntzen
|
|
|
|
License: Public Domain
|
2011-08-20 01:22:19 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef XAUDIO_C_H
|
|
|
|
#define XAUDIO_C_H
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct xaudio2 xaudio2_t;
|
|
|
|
|
2012-03-30 17:53:12 +00:00
|
|
|
xaudio2_t* xaudio2_new(unsigned samplerate, unsigned channels, size_t bufsize, unsigned device);
|
2011-08-20 01:22:19 +00:00
|
|
|
size_t xaudio2_write_avail(xaudio2_t *handle);
|
|
|
|
size_t xaudio2_write(xaudio2_t *handle, const void *data, size_t bytes);
|
|
|
|
void xaudio2_free(xaudio2_t *handle);
|
2012-03-30 17:53:12 +00:00
|
|
|
void xaudio2_enumerate_devices(xaudio2_t *handle);
|
2011-08-20 01:22:19 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|