| 123456789101112131415161718192021222324252627 |
- #ifndef __WAVFILE_H__
- #define __WAVFILE_H__
- #pragma once
- #include "config.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "stdint.h"
- typedef struct wavfile_t wavfile_t;
- TOOLKIT_API int wavfile_probe_format(const char *file, int *p_clock, int *p_samplebit, int *format_tag);
- TOOLKIT_API int wavfile_open(const char *file, int isread, int clock, int samplebit, int format_tag, wavfile_t **p_wavfile);
- TOOLKIT_API int wavfile_close(wavfile_t *wavfile);
- TOOLKIT_API int wavfile_get_native_handle(wavfile_t *wavfile, HANDLE *p_handle);
- TOOLKIT_API int wavfile_write(wavfile_t *wavfile, const void *buf, int size);
- TOOLKIT_API int wavfile_read(wavfile_t *wavfile, void *buf, int size);
- #ifdef __cplusplus
- } // extern "C" {
- #endif
- #endif //__WAVFILE_H__
|