|
| enum class | FileType { Audio
, Midi
, Unsupported
} |
| | Enumeration for supported file types. More...
|
Definition at line 15 of file file_importer.h.
◆ FileType
◆ getFileType()
| Q_INVOKABLE FileType zrythm::gui::backend::FileImporter::getFileType |
( |
const QString & | filePath | ) |
const |
Determines the type of a file.
- Parameters
-
| filePath | Path to the file to check. |
- Returns
- FileType indicating whether the file is audio, MIDI, or unsupported.
◆ importFiles()
| Q_INVOKABLE void zrythm::gui::backend::FileImporter::importFiles |
( |
const QStringList & | filePaths, |
|
|
double | startTicks, |
|
|
structure::tracks::Track * | track ) const |
Imports the given file.
- Parameters
-
| path | File to import. |
| startTicks | Start ticks to place file contents at, or 0. |
| track | Track to import in (optional). |
◆ isAudioFile()
| Q_INVOKABLE bool zrythm::gui::backend::FileImporter::isAudioFile |
( |
const QString & | filePath | ) |
const |
Checks if a file is an audio file.
- Parameters
-
| filePath | Path to the file to check. |
- Returns
- true if the file is a supported audio format, false otherwise.
◆ isMidiFile()
| Q_INVOKABLE bool zrythm::gui::backend::FileImporter::isMidiFile |
( |
const QString & | filePath | ) |
const |
Checks if a file is a MIDI file.
- Parameters
-
| filePath | Path to the file to check. |
- Returns
- true if the file is a valid MIDI file, false otherwise.
The documentation for this class was generated from the following file: