ACMX 2.136.0
Dual-Backend Real-Time GPU Video Synthesis
Loading...
Searching...
No Matches
acmxvk::audio::anonymous_namespace{file_audio.cpp} Namespace Reference

Classes

class  FileAudioOutput

Functions

std::string ffmpegError (int error)
std::string ffmpegPath (const std::filesystem::path &path)
bool isM3uPath (const std::filesystem::path &path)
bool isUrl (std::string_view path)
std::vector< std::string > readM3uPlaylist (const std::filesystem::path &playlist)
bool replaceFile (const std::filesystem::path &source, const std::filesystem::path &destination, std::error_code &error)
bool resampleMonoRecording (std::vector< float > &samples, unsigned int source_rate)
std::string trimPlaylistLine (std::string line)

Variables

constexpr unsigned int FILE_SAMPLE_RATE = 44100

Function Documentation

◆ ffmpegError()

std::string acmxvk::audio::anonymous_namespace{file_audio.cpp}::ffmpegError ( int error)
nodiscard

Definition at line 44 of file ACMXVK/file_audio.cpp.

References ffmpegError().

Referenced by ffmpegError(), and resampleMonoRecording().

◆ ffmpegPath()

std::string acmxvk::audio::anonymous_namespace{file_audio.cpp}::ffmpegPath ( const std::filesystem::path & path)
nodiscard

Definition at line 51 of file ACMXVK/file_audio.cpp.

References ffmpegPath().

Referenced by ffmpegPath().

◆ isM3uPath()

bool acmxvk::audio::anonymous_namespace{file_audio.cpp}::isM3uPath ( const std::filesystem::path & path)
nodiscard

Definition at line 167 of file ACMXVK/file_audio.cpp.

References isM3uPath().

Referenced by isM3uPath().

◆ isUrl()

bool acmxvk::audio::anonymous_namespace{file_audio.cpp}::isUrl ( std::string_view path)
nodiscard

Definition at line 176 of file ACMXVK/file_audio.cpp.

References isUrl().

Referenced by isUrl(), and readM3uPlaylist().

◆ readM3uPlaylist()

std::vector< std::string > acmxvk::audio::anonymous_namespace{file_audio.cpp}::readM3uPlaylist ( const std::filesystem::path & playlist)
nodiscard

◆ replaceFile()

bool acmxvk::audio::anonymous_namespace{file_audio.cpp}::replaceFile ( const std::filesystem::path & source,
const std::filesystem::path & destination,
std::error_code & error )
nodiscard

Definition at line 61 of file ACMXVK/file_audio.cpp.

References replaceFile().

Referenced by replaceFile().

◆ resampleMonoRecording()

bool acmxvk::audio::anonymous_namespace{file_audio.cpp}::resampleMonoRecording ( std::vector< float > & samples,
unsigned int source_rate )
nodiscard

Definition at line 80 of file ACMXVK/file_audio.cpp.

References ffmpegError(), FILE_SAMPLE_RATE, and resampleMonoRecording().

Referenced by resampleMonoRecording().

◆ trimPlaylistLine()

std::string acmxvk::audio::anonymous_namespace{file_audio.cpp}::trimPlaylistLine ( std::string line)
nodiscard

Definition at line 157 of file ACMXVK/file_audio.cpp.

References trimPlaylistLine().

Referenced by readM3uPlaylist(), and trimPlaylistLine().

Variable Documentation

◆ FILE_SAMPLE_RATE

unsigned int acmxvk::audio::anonymous_namespace{file_audio.cpp}::FILE_SAMPLE_RATE = 44100
constexpr