1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
/*
* tagging.cpp
* -----------
* Purpose: Structure holding a superset of tags for all supported output sample or stream files or types.
* Notes : (currently none)
* Authors: OpenMPT Devs
* The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
*/
#include "stdafx.h"
#include "Tagging.h"
#include "../common/version.h"
OPENMPT_NAMESPACE_BEGIN
mpt::ustring GetSampleNameFromTags(const FileTags &tags)
{
mpt::ustring result;
if(tags.artist.empty())
{
result = tags.title;
} else
{
result = MPT_UFORMAT("{} (by {})")(tags.title, tags.artist);
}
return result;
}
OPENMPT_NAMESPACE_END
|