version 1.102, 2010/07/31 08:48:01 |
version 1.103, 2010/08/19 06:31:06 |
|
|
struct cfstr *cs; |
struct cfstr *cs; |
unsigned hdr; |
unsigned hdr; |
|
|
if (strcmp(path, "-") == 0) { |
if (templ->hdr == HDR_AUTO) { |
path = NULL; |
|
hdr = HDR_RAW; |
|
} else if (templ->hdr == HDR_AUTO) { |
|
len = strlen(path); |
len = strlen(path); |
if (len >= 4 && strcasecmp(path + len - 4, ".wav") == 0) |
if (len >= 4 && strcasecmp(path + len - 4, ".wav") == 0) |
hdr = HDR_WAV; |
hdr = HDR_WAV; |
|
|
SLIST_REMOVE_HEAD(&cd->ins, entry); |
SLIST_REMOVE_HEAD(&cd->ins, entry); |
if (!cs->mmc) |
if (!cs->mmc) |
autostart = 1; |
autostart = 1; |
|
if (strcmp(cs->path, "-") == 0) |
|
cs->path = NULL; |
if (!wav_new_in(&wav_ops, d, cs->mode & MODE_PLAY, |
if (!wav_new_in(&wav_ops, d, cs->mode & MODE_PLAY, |
cs->path, cs->hdr, &cs->ipar, cs->xrun, |
cs->path, cs->hdr, &cs->ipar, cs->xrun, |
cs->vol, cs->mmc, cs->join)) |
cs->vol, cs->mmc, cs->join)) |
|
|
SLIST_REMOVE_HEAD(&cd->outs, entry); |
SLIST_REMOVE_HEAD(&cd->outs, entry); |
if (!cs->mmc) |
if (!cs->mmc) |
autostart = 1; |
autostart = 1; |
|
if (strcmp(cs->path, "-") == 0) |
|
cs->path = NULL; |
if (!wav_new_out(&wav_ops, d, cs->mode & MODE_RECMASK, |
if (!wav_new_out(&wav_ops, d, cs->mode & MODE_RECMASK, |
cs->path, cs->hdr, &cs->opar, cs->xrun, |
cs->path, cs->hdr, &cs->opar, cs->xrun, |
cs->mmc, cs->join)) |
cs->mmc, cs->join)) |