Input/wav: Add reset() function
This commit is contained in:
parent
f4b4725bce
commit
ab4c27cfa6
|
@ -356,6 +356,16 @@ static int end(struct sr_input *in)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int reset(struct sr_input *in)
|
||||||
|
{
|
||||||
|
struct context *inc = in->priv;
|
||||||
|
|
||||||
|
inc->started = FALSE;
|
||||||
|
g_string_truncate(in->buf, 0);
|
||||||
|
|
||||||
|
return SR_OK;
|
||||||
|
}
|
||||||
|
|
||||||
SR_PRIV struct sr_input_module input_wav = {
|
SR_PRIV struct sr_input_module input_wav = {
|
||||||
.id = "wav",
|
.id = "wav",
|
||||||
.name = "WAV",
|
.name = "WAV",
|
||||||
|
@ -366,4 +376,5 @@ SR_PRIV struct sr_input_module input_wav = {
|
||||||
.init = init,
|
.init = init,
|
||||||
.receive = receive,
|
.receive = receive,
|
||||||
.end = end,
|
.end = end,
|
||||||
|
.reset = reset,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue