1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-08 04:20:09 +00:00

Fix assertion during WaveAudioFormatTests

This commit is contained in:
attila 2024-11-27 19:43:22 +01:00 committed by Attila Szarvas
parent 5d5829927a
commit 9b87c1a50e

View file

@ -2145,7 +2145,11 @@ struct WaveAudioFormatTests final : public UnitTest
for (int i = numElementsInArray (WavFileHelpers::ListInfoChunk::types); --i >= 0;)
metadataValues[WavFileHelpers::ListInfoChunk::types[i]] = WavFileHelpers::ListInfoChunk::types[i];
metadataValues[WavAudioFormat::internationalStandardRecordingCode] = WavAudioFormat::internationalStandardRecordingCode;
const String prefixCode { "AA6Q7" }; // two letters followed by three alphanumeric characters
const String yearOfReference { "20" }; // two digits, 20 meaning the year 2020
const String designationCode { "00047" }; // five digits
metadataValues[WavAudioFormat::internationalStandardRecordingCode] = prefixCode + yearOfReference + designationCode;;
if (metadataValues.size() > 0)
metadataValues["MetaDataSource"] = "WAV";