Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
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
15
#include "
roc_core/noncopyable.h
"
16
#include "
roc_sndio/ibackend.h
"
17
18
namespace
roc
{
19
namespace
sndio {
20
21
//! Pulseaudio backend.
22
class
PulseaudioBackend
:
public
IBackend
,
core::NonCopyable
<> {
23
public
:
24
PulseaudioBackend
();
25
26
//! Append supported drivers to the list.
27
virtual
void
discover_drivers
(
core::Array<DriverInfo, MaxDrivers>
& driver_list);
28
29
//! Create and open a sink or source.
30
virtual
IDevice
*
open_device
(
DeviceType
device_type,
31
DriverType
driver_type,
32
const
char
* driver,
33
const
char
* path,
34
const
Config
& config,
35
core::IArena
& arena);
36
37
virtual
const
char
*
name
()
const
;
38
};
39
40
}
// namespace sndio
41
}
// namespace roc
42
43
#endif
// ROC_SNDIO_PULSEAUDIO_BACKEND_H_
roc::core::Array
Dynamic array.
Definition:
array.h:40
roc::core::IArena
Memory arena interface.
Definition:
iarena.h:23
roc::core::NonCopyable
Base class for non-copyable objects.
Definition:
noncopyable.h:23
roc::sndio::IBackend
Backend interface.
Definition:
ibackend.h:29
roc::sndio::IDevice
Base interface for sinks and sources.
Definition:
idevice.h:28
roc::sndio::PulseaudioBackend
Pulseaudio backend.
Definition:
pulseaudio_backend.h:22
roc::sndio::PulseaudioBackend::discover_drivers
virtual void discover_drivers(core::Array< DriverInfo, MaxDrivers > &driver_list)
Append supported drivers to the list.
roc::sndio::PulseaudioBackend::name
virtual const char * name() const
Returns name of backend.
roc::sndio::PulseaudioBackend::open_device
virtual IDevice * open_device(DeviceType device_type, DriverType driver_type, const char *driver, const char *path, const Config &config, core::IArena &arena)
Create and open a sink or source.
ibackend.h
Backend interface.
roc::sndio::DeviceType
DeviceType
Device type.
Definition:
device_type.h:19
roc::sndio::DriverType
DriverType
Driver type.
Definition:
driver.h:27
roc
Root namespace.
noncopyable.h
Non-copyable object.
roc::sndio::Config
Sink and source config.
Definition:
config.h:29
roc_sndio
target_pulseaudio
roc_sndio
pulseaudio_backend.h
Generated by
1.9.1