*/
void Port::set_vbox_play(const char *name, int offset)
{
- signed int size;
struct lcr_msg *message;
/* use ser_box_tone() */
{
message = message_create(p_serial, ACTIVE_EPOINT(p_epointlist), PORT_TO_EPOINT, MESSAGE_TONE_COUNTER);
message->param.counter.current = offset;
- message->param.counter.max = size;
+ message->param.counter.max = p_tone_size;
message_put(message);
}
}
*/
int Port::read_audio(unsigned char *buffer, int length)
{
- int l,len;
+ int l = 0,len;
int nodata=0; /* to detect 0-length files and avoid endless reopen */
char filename[128];
int tone_left_before; /* temp variable to determine the change in p_tone_left */
void Port::close_record(int beep, int mute)
{
static signed short beep_mono[256];
- unsigned int size, wsize;
+ unsigned int size = 0, wsize = 0;
struct fmt fmt;
char filename[512], indexname[512];
FILE *fp;