QtCraft API C++ classes QML types Handbook

QcSoundExporter Namespace

Development aid: writes every sound of the content (first variant) and one music piece as 16-bit mono WAV files, so that sound definitions can be listened to and checked without the game. More...

Header: #include <headless/QcSoundExporter.h>

Functions

QcResult<QStringList> exportAll(const QcContentRegistry &content, const QString &directory, quint64 musicSeed)

Detailed Description

Function Documentation

QcResult<QStringList> QcSoundExporter::exportAll(const QcContentRegistry &content, const QString &directory, quint64 musicSeed)

Writes every sound of content and the music piece composed from musicSeed into directory (creating it). Returns one line per file: name, length in seconds and peak level; an error when a file cannot be written.