Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
pulseaudio_backend.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Roc Streaming authors
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 */
8
9//! @file roc_sndio/target_pulseaudio/roc_sndio/pulseaudio_backend.h
10//! @brief Pulseaudio backend.
11
12#ifndef ROC_SNDIO_PULSEAUDIO_BACKEND_H_
13#define ROC_SNDIO_PULSEAUDIO_BACKEND_H_
14
16#include "roc_sndio/ibackend.h"
17
18namespace roc {
19namespace sndio {
20
21//! Pulseaudio backend.
23public:
25
26 //! Append supported drivers to the list.
28
29 //! Create and open a sink or source.
30 virtual ITerminal* open_terminal(TerminalType terminal_type,
31 DriverType driver_type,
32 const char* driver,
33 const char* path,
34 const Config& config,
35 core::IAllocator& allocator);
36};
37
38} // namespace sndio
39} // namespace roc
40
41#endif // ROC_SNDIO_PULSEAUDIO_BACKEND_H_
Dynamic array.
Definition array.h:38
Memory allocator interface.
Definition iallocator.h:23
Base class for non-copyable objects.
Definition noncopyable.h:23
Backend interface.
Definition ibackend.h:29
Base interface for sinks and sources.
Definition iterminal.h:23
virtual void discover_drivers(core::Array< DriverInfo, MaxDrivers > &driver_list)
Append supported drivers to the list.
virtual ITerminal * open_terminal(TerminalType terminal_type, DriverType driver_type, const char *driver, const char *path, const Config &config, core::IAllocator &allocator)
Create and open a sink or source.
Backend interface.
TerminalType
Terminal type.
DriverType
Driver type.
Definition driver.h:27
Root namespace.
Non-copyable object.
Sink and source config.
Definition config.h:23