- btr_remove_node(btrn);
-}
-
-static int oss_open(struct writer_node *wn)
-{
- struct writer_node_group *wng;
- struct private_oss_write_data *powd;
-
- powd = para_calloc(sizeof(*powd));
- wn->private_data = powd;
- if (!wn->btrn) {
- wng = wn->wng;
- return oss_init(wn, wng->samplerate ? *wng->samplerate : 0,
- wng->channels? *wng->channels : 0);
- }
- powd->fd = -1;
- return 1;
-}
-
-__malloc static void *oss_parse_config(const char *options)
-{
- int ret;
- struct oss_write_args_info *conf = para_calloc(sizeof(*conf));
-
- PARA_INFO_LOG("options: %s, %zd\n", options, strcspn(options, " \t"));
- ret = oss_cmdline_parser_string(options, conf, "oss_write");
- if (ret)
- goto err_out;
- return conf;
-err_out:
- free(conf);
- return NULL;
-}
-
-static void oss_free_config(void *conf)
-{
- oss_cmdline_parser_free(conf);