1#ifndef __FILE_AUDIO__H_
2#define __FILE_AUDIO__H_
double file_audio_playback_time()
Return the current output-device playback timestamp in seconds.
bool file_audio_has_output_clock()
Check whether real-time output playback can provide the master clock.
void file_audio_close()
Stop file-audio playback and release decoder/sample resources.
std::vector< std::string > file_audio_source_paths()
Return the successfully decoded source tracks in playback order.
bool file_audio_open(const std::string &filepath)
Open and fully decode an audio file or M3U playlist to mono float PCM at 44.1 kHz.
void file_audio_set_repeat(bool enabled)
Enable or disable looping of the currently decoded audio file.
bool file_audio_enable_output(int output_device)
Configure real-time playback of the decoded file through an output device.
bool file_audio_is_active()
Return true while decoded file-audio samples remain.
void file_audio_process_frame(double video_fps, acmx2::audio::AudioAnalyzer &analyzer)
Advance one video-frame worth of samples and update audio analysis.
std::string file_audio_current_source_path()
Return the source track at the current playback position.
Owns the audio-reactive analysis state shared by live and file audio.