{
struct check_wav_task_btr *cwt = btr_context(btrn);
+
if (!strcmp(cmd, "samplerate")) {
if (cwt->state != CWS_HAVE_HEADER)
return -ERRNO_TO_PARA_ERROR(ENAVAIL);
if (!strcmp(cmd, "channels")) {
if (cwt->state != CWS_HAVE_HEADER)
return -ERRNO_TO_PARA_ERROR(ENAVAIL);
- *result = make_message("%d", cwt->samplerate);
+ *result = make_message("%d", cwt->channels);
return 1;
}
return -ERRNO_TO_PARA_ERROR(ENOTSUP);