pulse-server: implement pipe sink/source with module

This commit is contained in:
Wim Taymans 2022-06-03 11:51:29 +02:00
parent 87172fde06
commit 6276253c30
3 changed files with 119 additions and 425 deletions

View file

@ -393,8 +393,12 @@ static int create_fifo(struct impl *impl)
pw_log_error("'%s' is not a FIFO.", filename);
goto error;
}
pw_log_info("opened fifo '%s' for %s", filename,
impl->direction == PW_DIRECTION_INPUT ? "writing" : "reading");
pw_log_info("%s fifo '%s' with format:%s channels:%d rate:%d",
impl->direction == PW_DIRECTION_OUTPUT ? "reading from" : "writing to",
filename,
spa_debug_type_find_name(spa_type_audio_format, impl->info.format),
impl->info.channels, impl->info.rate);
impl->filename = strdup(filename);
impl->unlink_fifo = do_unlink_fifo;
impl->fd = fd;