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 |
| Atomic: the waveform threads ask while the decoder is still running. | |
| const RMSData & | rms () const |
| std::shared_ptr< const WaveformSummary > | waveformSummary () const noexcept |
| 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) |
| static bool | isSupportedVideo (const QFile &f) |
Public Attributes | |
| Nano::Signal< void()> | on_mediaChanged |
| Nano::Signal< void()> | on_newData |
| Nano::Signal< void()> | on_finishedDecoding |
Friends | |
| class | SoundComponentSetup |
Member Function Documentation
◆ waveformSummary()
|
noexcept |
Min/max summary used to draw the waveform when zoomed out, built on the first call. Null until the file has finished decoding, and for streamed sources, which would have to be decoded whole to summarise.
Costs about one un-summarised redraw: call it off the GUI and audio threads.
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