|
Hermes 0.7.0
Linux game streaming host
|
An isolated session's own PipeWire server. More...
#include <algorithm>#include <array>#include <chrono>#include <csignal>#include <filesystem>#include <fstream>#include <map>#include <mutex>#include <thread>#include <sys/socket.h>#include <sys/un.h>#include <unistd.h>#include <boost/process/v1/child.hpp>#include <boost/process/v1/env.hpp>#include <boost/process/v1/environment.hpp>#include <boost/process/v1/handles.hpp>#include <boost/process/v1/io.hpp>#include <boost/process/v1/search_path.hpp>#include <pipewire/pipewire.h>#include <spa/param/audio/format-utils.h>#include <pulse/pulseaudio.h>#include "session_audio.h"#include "src/logging.h"Go to the source code of this file.
Macros | |
| #define | BOOST_PROCESS_VERSION 1 |
Functions | |
| std::unique_ptr< server_t > | platf::session_audio::start (const std::string &runtime_dir, const std::string &sink, int channels, const std::string &mic) |
| Start a server in runtime_dir with sink as its only output and, if mic is not empty, a source of that name that open_mic(mic) feeds. | |
| std::unique_ptr< mic_writer_t > | platf::session_audio::open_mic (const std::string &mic) |
| Open a session mic for writing 48 kHz mono samples, or nullptr. | |
An isolated session's own PipeWire server.
Definition in file session_audio.cpp.
| #define BOOST_PROCESS_VERSION 1 |
Definition at line 6 of file session_audio.cpp.
| std::unique_ptr< mic_writer_t > platf::session_audio::open_mic | ( | const std::string & | mic | ) |
Open a session mic for writing 48 kHz mono samples, or nullptr.
Definition at line 512 of file session_audio.cpp.
| std::unique_ptr< server_t > platf::session_audio::start | ( | const std::string & | runtime_dir, |
| const std::string & | sink, | ||
| int | channels, | ||
| const std::string & | mic ) |
Start a server in runtime_dir with sink as its only output and, if mic is not empty, a source of that name that open_mic(mic) feeds.
Definition at line 424 of file session_audio.cpp.