41 #ifndef __EST_WAVE_UTILS_H__
42 #define __EST_WAVE_UTILS_H__
45 #include "EST_cutils.h"
46 #include "EST_rw_status.h"
47 #include "EST_WaveFile.h"
49 void ConvertToIeeeExtended(
double num,
unsigned char *bytes);
50 double ConvertFromIeeeExtended(
unsigned char *bytes);
52 int get_word_size(
enum EST_sample_type_t sample_type);
53 enum EST_sample_type_t str_to_sample_type(
const char *type);
54 const char *sample_type_to_str(
enum EST_sample_type_t type);
56 short *convert_raw_data(
unsigned char *file_data,
int data_length,
57 enum EST_sample_type_t sample_type,
int bo);
58 enum EST_write_status save_raw_data(FILE *fp,
const short *data,
int offset,
59 int num_samples,
int num_channels,
60 enum EST_sample_type_t sample_type,
int bo);
61 enum EST_write_status save_raw_data_nc(FILE *fp,
const short *data,
int offset,
62 int num_samples,
int num_channels,
63 enum EST_sample_type_t sample_type,
int bo);