21class SoundWaveImportFixupModal
25 static constexpr uint32_t kTargetSampleRate = 44100;
38 std::string mAssetName;
39 std::string mSourcePath;
40 uint32_t mSrcSampleRate = 0;
41 uint32_t mNumChannels = 0;
42 uint32_t mBitsPerSample = 0;
43 FixChoice mResolved = FixChoice::None;
46 static SoundWaveImportFixupModal*
Get();
49 void Enqueue(
SoundWave* wave,
const std::string& sourcePath);
51 bool HasPending()
const {
return !mRows.empty(); }
55 bool IsAwaitingFixup(
const Asset* asset)
const;
64 SoundWaveImportFixupModal() =
default;
66 void ApplyResample(PendingRow& row);
67 void ApplyKeep(PendingRow& row);
68 void ApplyCancel(PendingRow& row);
69 void SaveRow(
const PendingRow& row);
71 std::vector<PendingRow> mRows;
72 bool mModalRequested =
false;