wavfile.h 757 B

123456789101112131415161718192021222324252627
  1. #ifndef __WAVFILE_H__
  2. #define __WAVFILE_H__
  3. #pragma once
  4. #include "config.h"
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. #include "stdint.h"
  9. typedef struct wavfile_t wavfile_t;
  10. TOOLKIT_API int wavfile_probe_format(const char *file, int *p_clock, int *p_samplebit, int *format_tag);
  11. TOOLKIT_API int wavfile_open(const char *file, int isread, int clock, int samplebit, int format_tag, wavfile_t **p_wavfile);
  12. TOOLKIT_API int wavfile_close(wavfile_t *wavfile);
  13. TOOLKIT_API int wavfile_get_native_handle(wavfile_t *wavfile, HANDLE *p_handle);
  14. TOOLKIT_API int wavfile_write(wavfile_t *wavfile, const void *buf, int size);
  15. TOOLKIT_API int wavfile_read(wavfile_t *wavfile, void *buf, int size);
  16. #ifdef __cplusplus
  17. } // extern "C" {
  18. #endif
  19. #endif //__WAVFILE_H__