Loading...
Searching...
No Matches
Classes |
Public Types |
Public Member Functions |
Static Public Member Functions |
Public Attributes |
Friends |
List of all members
Media::AudioFile Struct Referencefinal
Inheritance diagram for Media::AudioFile:
Classes | |
struct | Handle |
struct | LibavReader |
struct | LibavStreamReader |
struct | MmapReader |
struct | MmapView |
struct | RAMReader |
struct | RAMView |
struct | SndfileReader |
struct | StreamView |
struct | ViewHandle |
Public Types | |
using | libav_ptr = std::shared_ptr< LibavReader > |
using | libav_stream_ptr = LibavStreamReader |
using | mmap_ptr = MmapReader |
using | sndfile_ptr = SndfileReader |
using | impl_t = ossia::nullable_variant< mmap_ptr, libav_ptr, sndfile_ptr, libav_stream_ptr > |
using | view_impl_t = ossia::nullable_variant< MmapView, RAMView, StreamView > |
Public Member Functions | |
void | load (DecodingSetup opts) |
QString | originalFile () const |
The text passed to the load function. | |
QString | fileName () const |
Actual filename. | |
QString | absoluteFileName () const |
Absolute resolved filename. | |
int | sampleRate () const |
int64_t | decodedSamples () const |
int64_t | samples () const |
int64_t | channels () const |
bool | empty () const |
bool | finishedDecoding () const noexcept |
const RMSData & | rms () const |
ossia::audio_array | getAudioArray () const |
Get a copy of the audio array, as 32 bit floats, whatever the input format is. | |
ViewHandle | handle () const noexcept |
const Handle & | unsafe_handle () const noexcept |
std::optional< double > | knownTempo () const noexcept |
Static Public Member Functions | |
static bool | isSupported (const QFile &f) |
Public Attributes | |
Nano::Signal< void()> | on_mediaChanged |
Nano::Signal< void()> | on_newData |
Nano::Signal< void()> | on_finishedDecoding |
Friends | |
class | SoundComponentSetup |
The documentation for this struct was generated from the following files:
- MediaFileHandle.hpp
- MediaFileHandle.cpp
- MediaFileHandle.libav.cpp
- MediaFileHandle.libavstream.cpp
- MediaFileHandle.mmap.cpp
- MediaFileHandle.sndfile.cpp