4 #include "bitspopup.inc"
6 #include "filesndfile.h"
9 class FileSndFile
: public FileBase
12 FileSndFile(Asset
*asset
, File
*file
);
15 static int check_sig(Asset
*asset
);
16 int open_file(int rd
, int wr
);
18 int set_audio_position(int64_t sample
);
19 int read_samples(double *buffer
, int64_t len
);
20 int write_samples(double **buffer
, int64_t len
);
21 void format_to_asset();
22 void asset_to_format();
24 static void get_parameters(BC_WindowBase
*parent_window
,
26 BC_WindowBase
* &format_window
,
32 // Temp for interleaved channels
34 int64_t temp_allocated
;
39 class SndFileHILO
: public BC_Radial
42 SndFileHILO(SndFileConfig
*gui
, int x
, int y
);
47 class SndFileLOHI
: public BC_Radial
50 SndFileLOHI(SndFileConfig
*gui
, int x
, int y
);
56 class SndFileConfig
: public BC_Window
59 SndFileConfig(BC_WindowBase
*parent_window
, Asset
*asset
);
65 BC_WindowBase
*parent_window
;
66 BitsPopup
*bits_popup
;