pipewire/src/modules/module-protocol-pulse/quirks.h
Wim Taymans ca488a5dcc pulse-server: add quirk to block record and playback streams
Add aquirk to block any record or playback stream.
2024-09-23 10:56:40 +02:00

20 lines
827 B
C

/* PipeWire */
/* SPDX-FileCopyrightText: Copyright © 2021 Wim Taymans */
/* SPDX-License-Identifier: MIT */
#ifndef PULSER_SERVER_QUIRKS_H
#define PULSER_SERVER_QUIRKS_H
#include "client.h"
#define QUIRK_FORCE_S16_FORMAT (1ull<<0) /** forces S16 sample format in sink and source
* info */
#define QUIRK_REMOVE_CAPTURE_DONT_MOVE (1ull<<1) /** removes the capture stream DONT_MOVE flag */
#define QUIRK_BLOCK_SOURCE_VOLUME (1ull<<2) /** block volume changes to sources */
#define QUIRK_BLOCK_SINK_VOLUME (1ull<<3) /** block volume changes to sinks */
#define QUIRK_BLOCK_RECORD_STREAM (1ull<<4) /** block creating a record stream */
#define QUIRK_BLOCK_PLAYBACK_STREAM (1ull<<5) /** block creating a playback stream */
int client_update_quirks(struct client *client);
#endif /* PULSER_SERVER_QUIRKS_H */