mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-16 18:57:24 -05:00
Merge pull request #6 from balr0g/libsndfile-support
Support for wav input/output using libsndfile
This commit is contained in:
14
dsd.h
14
dsd.h
@@ -36,7 +36,7 @@
|
||||
#endif
|
||||
#include <math.h>
|
||||
#include <mbelib.h>
|
||||
|
||||
#include <sndfile.h>
|
||||
/*
|
||||
* global variables
|
||||
*/
|
||||
@@ -59,8 +59,14 @@ typedef struct
|
||||
int scoperate;
|
||||
char audio_in_dev[1024];
|
||||
int audio_in_fd;
|
||||
SNDFILE *audio_in_file;
|
||||
SF_INFO *audio_in_file_info;
|
||||
int audio_in_type; // 0 for device, 1 for file
|
||||
char audio_out_dev[1024];
|
||||
int audio_out_fd;
|
||||
SNDFILE *audio_out_file;
|
||||
SF_INFO *audio_out_file_info;
|
||||
int audio_out_type; // 0 for device, 1 for file
|
||||
int split;
|
||||
int playoffset;
|
||||
char mbe_out_dir[1024];
|
||||
@@ -69,8 +75,8 @@ typedef struct
|
||||
float audio_gain;
|
||||
int audio_out;
|
||||
char wav_out_file[1024];
|
||||
FILE *wav_out_f;
|
||||
int wav_out_fd;
|
||||
SNDFILE *wav_out_f;
|
||||
//int wav_out_fd;
|
||||
int serial_baud;
|
||||
char serial_dev[1024];
|
||||
int serial_fd;
|
||||
@@ -108,7 +114,7 @@ typedef struct
|
||||
float *audio_out_temp_buf_p;
|
||||
int audio_out_idx;
|
||||
int audio_out_idx2;
|
||||
int wav_out_bytes;
|
||||
//int wav_out_bytes;
|
||||
int center;
|
||||
int jitter;
|
||||
int synctype;
|
||||
|
||||
Reference in New Issue
Block a user