wng->task.event_handler = wng_event_handler;
wng->channels = &cwt.channels;
wng->samplerate = &cwt.samplerate;
ret = wng_open(wng);
if (ret < 0) {
wng->task.event_handler = wng_event_handler;
wng->channels = &cwt.channels;
wng->samplerate = &cwt.samplerate;
ret = wng_open(wng);
if (ret < 0) {
static void cwt_event_handler(struct task *t)
{
if (t->ret != -E_NO_WAV_HEADER && t->ret != -E_WAV_HEADER_SUCCESS) {
static void cwt_event_handler(struct task *t)
{
if (t->ret != -E_NO_WAV_HEADER && t->ret != -E_WAV_HEADER_SUCCESS) {
sprintf(cwt.task.status, "check wav");
register_task(&cwt.task);
sprintf(cwt.task.status, "check wav");
register_task(&cwt.task);