4 #include "pluginaclient.h"
6 #include <linux/cdrom.h>
12 class CDRipMain
: public PluginAClient
15 CDRipMain(PluginServer
*server
);
20 int is_multichannel();
24 int process_loop(double **plugin_buffer
, int64_t &write_length
);
31 int track1
, min1
, sec1
, track2
, min2
, sec2
;
32 char device
[BCTEXTLEN
];
33 int64_t startlba
, endlba
;
39 // Current state of process_loop
40 struct cdrom_read_audio arg
;
41 int FRAME
; // 2 bytes 2 channels
42 int previewing
; // defeat bug in hardware
43 int64_t fragment_length
;
46 int i
, j
, k
, l
, attempts
;
47 int64_t fragment_samples
;
48 int64_t currentlength
;
49 int64_t startlba_fragment
;
50 char *buffer
; // Temp buffer for int16 data
51 int16_t *buffer_channel
;
52 double *output_buffer
;
53 MainProgressBar
*progress
;