---
name: "muroar_close"
section: "3"
platform: "linux"
package: "libmuroar-dev"
version: "0.1.13-7"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/muroar_close"
---

# muroar\_close(3)

Disconnect stream from RoarAudio sound server

## NAME

muroar\_close - Disconnect stream from RoarAudio sound server

## SYNOPSIS

\#include \<muroar.h\>

int muroar\_close(muroar\_t fh);

## DESCRIPTION

This function disconnects a data connection (stream) from the sound server in a clean way. The socket is closed by this function. No additional [**close**(2)](/close/2.md) is needed.

Open control connections which are not created by [**muroar\_stream**(3)](/muroar_stream/3.md) must not be closed using this function. They must be closed using [**muroar\_quit**(3)](/muroar_quit/3.md).

## RETURN VALUE

On success this call return 0. On error, -1 is returned.

## HISTORY

This function first appeared in muRoar version 0.1beta0.

## SEE ALSO

[**muroar\_connect**(3)](/muroar_connect/3.md), [**muroar\_stream**(3)](/muroar_stream/3.md), [**muroar\_quit**(3)](/muroar_quit/3.md), [**RoarAudio**(7)](/RoarAudio/7.md).
