Input/Output¶
File I/O, audio format support, and data visualization tools.
A¶
enum constantaudiofile_error::abort Operation abortedclassabstract_reader<T> Base class for all typed readersclassabstract_stream<T> Base class for all typed readers and writerdestructorabstract_stream<T>::~abstract_stream<T>()classabstract_writer<T> Base class for all typed writersenum constantaudiofile_error::access_denied Access to the file was deniedenum constantopen_file_mode::append_existingstructaudio_formatstructaudio_format_and_lengthconstructoraudio_format_and_length::audio_format_and_length()constructoraudio_format_and_length::audio_format_and_length(const audio_format &)structaudio_reader_flac<f32>structaudio_reader_flac<f64>structaudio_reader_flac<i16>structaudio_reader_flac<i24>structaudio_reader_flac<i32>classaudio_reader_flac<T> FLAC format readerdestructoraudio_reader_flac<T>::~audio_reader_flac<T>()constructoraudio_reader_flac<T>::audio_reader_flac<T>(std::shared_ptr<abstract_reader<>> &&) Constructs FLAC readerstructaudio_reader_mp3<f32>structaudio_reader_mp3<f64>structaudio_reader_mp3<i16>structaudio_reader_mp3<i24>structaudio_reader_mp3<i32>classaudio_reader_mp3<T> MP3 format readerdestructoraudio_reader_mp3<T>::~audio_reader_mp3<T>()constructoraudio_reader_mp3<T>::audio_reader_mp3<T>(std::shared_ptr<abstract_reader<>> &&) Constructs MP3 readerstructaudio_reader_wav<f32>structaudio_reader_wav<f64>structaudio_reader_wav<i16>structaudio_reader_wav<i24>structaudio_reader_wav<i32>classaudio_reader_wav<T> WAV format readerdestructoraudio_reader_wav<T>::~audio_reader_wav<T>()constructoraudio_reader_wav<T>::audio_reader_wav<T>(std::shared_ptr<abstract_reader<>> &&) Constructs WAV readerclassaudio_reader<T>structaudio_writer_wav<f32>structaudio_writer_wav<f64>structaudio_writer_wav<i16>structaudio_writer_wav<i24>structaudio_writer_wav<i32>classaudio_writer_wav<T> WAV format writerdestructoraudio_writer_wav<T>::~audio_writer_wav<T>()constructoraudio_writer_wav<T>::audio_writer_wav<T>(std::shared_ptr<abstract_writer<>> &&, const audio_format &) Constructs WAV writer using target writer and formatclassaudio_writer<T>enumaudiofile_error Enumerates possible error codes for audio file operations.
B¶
enum constantseek_origin::begin From the beginningtypedefbinary_reader Binary readertypedefbinary_writer Binary writertypedefbyte_reader Byte readertypedefbyte_writer Byte writer
C¶
variableaudio_format::channelsfunctionaudio_writer<T>::close() Finishes writing and closes underlying writerfunctionaudio_writer_wav<T>::close()enum constantaudiofile_error::closed The audio file is closedfunctionconcat_args()functionconcat_args(const std::string &, const Ts &...)variableaudio_reader_mp3<T>::configenum constantseek_origin::current From the current position
D¶
functiondB_to_string(const T &, double) Converts dB value to string (uses oo for infinity symbol)functiondB_to_utf8string(const T &, double) Converts dB value to string (uses infinity symbol in utf-8 encoding)variabledefault_audio_frames_to_read The default number of audio frames to read in one operation.
E¶
functionelement_size()functionelement_size<>()enum constantaudiofile_error::empty_file The file is empty or does not contain any audio dataenum constantseek_origin::end From the endenum constantaudiofile_error::end_of_file End of file reached
F¶
typedeff32_reader float readertypedeff32_writer float writervariablefile_handle::filefunctionfile_extension(const file_path &)structfile_handleconstructorfile_handle::file_handle()destructorfile_handle::~file_handle()constructorfile_handle::file_handle(const file_handle &)constructorfile_handle::file_handle(FILE *)constructorfile_handle::file_handle(file_handle &&)typedeffile_pathclassfile_reader<T> Typed file readerdestructorfile_reader<T>::~file_reader<T>()constructorfile_reader<T>::file_reader<T>(file_handle &&)classfile_writer<T> Typed file writerdestructorfile_writer<T>::~file_writer<T>()constructorfile_writer<T>::file_writer<T>(file_handle &&)typedeffilepathfunctionfopen_path(const file_path &, open_file_mode)functionaudio_reader<T>::format() Returns audio format descriptionfunctionaudio_writer<T>::format() Returns audio format descriptionfunctionaudio_writer_wav<T>::format()functionaudio_reader_wav<T>::format() Returns audio format descriptionfunctionaudio_reader_flac<T>::format() Returns audio format descriptionfunctionaudio_reader_mp3<T>::format() Returns audio format descriptionenum constantaudiofile_error::format_error The audio file format is invalid or unsupported.functionfrom_error_code(std::error_code) Converts a standard error code to an audiofile_error.
G¶
functionrepresentation<kfr::special_value>::get(const kfr::special_value &)functionrepresentation<kfr::cpu_t>::get(kfr::cpu_t)
H¶
variablefile_reader<T>::handlevariablefile_writer<T>::handle
I¶
enum constantaudiofile_error::internal_error An internal error occurred.enum constantaudiofile_error::invalid_argument Invalid argument passedenum constantaudiofile_error::io_error An input/output error occurred.
K¶
macroKFR_FILEPATHmacroKFR_IO_SEEK_64macroKFR_IO_TELL_64
L¶
variableaudio_format_and_length::lengthfunctionlibrary_version_io() Returns the full version string of the KFR IO module.
M¶
classmemory_reader<T>constructormemory_reader<T>::memory_reader<T>(std::span<const T>)classmemory_writer<T>constructormemory_writer<T>::memory_writer<T>(std::span<T>)structmp3_config
N¶
enum constantaudiofile_error::not_found The file was not foundenum constantaudiofile_error::not_implemented Not implemented
O¶
functionopen_file_for_appending(const filepath &) Opens typed file for appendingfunctionopen_file_for_reading(const filepath &) Opens typed file for readingfunctionopen_file_for_writing(const filepath &) Opens typed file for writingenumopen_file_modevariablemp3_config::outputChannelsvariablemp3_config::outputSampleRate
P¶
functionperfplot_save(const std::string &, T1 &&, T2 &&, const std::string &)functionperfplot_show(const std::string &, T1 &&, T2 &&, const std::string &)functionplot_save(const std::string &, const T &, const std::string &) Plot data using python and save to filefunctionplot_show(const std::string &, const char *, const std::string &)functionplot_show(const std::string &, const std::string &, const std::string &)functionplot_show(const std::string &, const T &, const std::string &) Plot data using pythonfunctionpython_prologue()
R¶
functionaudio_reader<T>::read_channels()functionaudio_reader<T>::read_channels(size_t)enum constantopen_file_mode::read_existingenum constantopen_file_mode::read_write_existingenum constantopen_file_mode::read_write_newvariablereader_adapter<From, To>::readerclassreader_adapter<From, To>constructorreader_adapter<From, To>::reader_adapter<From, To>(std::shared_ptr<abstract_reader<From>>)functionabstract_reader<T>::read(size_t)functionreader_adapter<From, To>::read(To *, size_t)functionabstract_reader<T>::read(T *, size_t)functionmemory_reader<T>::read(T *, size_t)functionfile_reader<T>::read(T *, size_t)functionaudio_reader_wav<T>::read(T *, size_t) Reads and decodes audio datafunctionaudio_reader_flac<T>::read(T *, size_t) Reads and decodes audio datafunctionaudio_reader_mp3<T>::read(T *, size_t) Reads and decodes audio datafunctionabstract_reader<T>::read(U &)structrepresentation<kfr::cpu_t>structrepresentation<kfr::special_value>
S¶
variableaudio_format::sampleratevariablereader_adapter<From, To>::scalevariablewriter_adapter<From, To>::scaleenumseek_origin Seek originfunctionaudio_writer_wav<T>::seek(imax, seek_origin)functionaudio_reader_wav<T>::seek(imax, seek_origin) Seeks to specific samplefunctionaudio_reader_flac<T>::seek(imax, seek_origin) Seeks to specific samplefunctionaudio_reader_mp3<T>::seek(imax, seek_origin) Seeks to specific samplefunctionabstract_stream<T>::seek(int64_t, int)functionabstract_stream<T>::seek(int64_t, seek_origin)functionmemory_reader<T>::seek(int64_t, seek_origin)functionmemory_writer<T>::seek(int64_t, seek_origin)functionreader_adapter<From, To>::seek(int64_t, seek_origin)functionwriter_adapter<From, To>::seek(int64_t, seek_origin)functionfile_reader<T>::seek(int64_t, seek_origin)functionfile_writer<T>::seek(int64_t, seek_origin)functionabstract_stream<T>::size()functionmemory_reader<T>::size()functionmemory_writer<T>::size()functionreader_adapter<From, To>::size()functionwriter_adapter<From, To>::size()functionfile_handle::swap(file_handle &)
T¶
functionabstract_stream<T>::tell()functionmemory_reader<T>::tell()functionmemory_writer<T>::tell()functionreader_adapter<From, To>::tell()functionwriter_adapter<From, To>::tell()functionfile_reader<T>::tell()functionfile_writer<T>::tell()functionaudio_writer_wav<T>::tell()functionaudio_reader_wav<T>::tell() Returns current positionfunctionaudio_reader_flac<T>::tell() Returns current positionfunctionaudio_reader_mp3<T>::tell() Returns current positionfunctionto_string(audiofile_error) Converts an audiofile_error to its string representation.enum constantaudiofile_error::too_large data chunk too large for standard WAVvariableaudio_format::typetypedefrepresentation<kfr::special_value>::typetypedefrepresentation<kfr::cpu_t>::type
U¶
enum constantaudiofile_error::unknown An unknown error occurredvariableaudio_format::use_w64
W¶
functionaudio_writer<T>::write_channels(const univector2d<T, Tag1, Tag2> &)enum constantopen_file_mode::write_newfunctionwriter_adapter<From, To>::write(const To *, size_t)functionabstract_writer<T>::write(const T *, size_t)functionmemory_writer<T>::write(const T *, size_t)functionfile_writer<T>::write(const T *, size_t)functionaudio_writer_wav<T>::write(const T *, size_t) Write data to underlying binary writer data is PCM samples in interleaved format size is the number of samples (PCM frames * channels)functionabstract_writer<T>::write(const U &)variablewriter_adapter<From, To>::writerclasswriter_adapter<From, To>constructorwriter_adapter<From, To>::writer_adapter<From, To>(std::shared_ptr<abstract_writer<From>>)
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.