1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 17:35:10 +08:00

Remove ChannelType from messages

This commit is contained in:
Arthur Araujo 2024-04-19 08:01:23 -03:00
parent 68e86b5105
commit 92b85beff6
2 changed files with 7 additions and 7 deletions

View File

@ -61,7 +61,7 @@ namespace osu.Game.Rulesets.Edit.Checks
var audioInfo = Bass.ChannelGetInfo(decodeStream);
if (!allowedFormats.Contains(audioInfo.ChannelType))
yield return new IssueTemplateIncorrectFormat(this).Create(file.Filename, audioInfo.ChannelType.ToString());
yield return new IssueTemplateIncorrectFormat(this).Create(file.Filename);
Bass.StreamFree(decodeStream);
}
@ -83,11 +83,11 @@ namespace osu.Game.Rulesets.Edit.Checks
public class IssueTemplateIncorrectFormat : IssueTemplate
{
public IssueTemplateIncorrectFormat(ICheck check)
: base(check, IssueType.Problem, "\"{0}\" is using a incorrect format ({1}). Use wav or ogg for hitsounds.")
: base(check, IssueType.Problem, "\"{0}\" is using a incorrect format. Use wav or ogg for hitsounds.")
{
}
public Issue Create(string file, string format) => new Issue(this, file, format);
public Issue Create(string file) => new Issue(this, file);
}
}
}

View File

@ -54,7 +54,7 @@ namespace osu.Game.Rulesets.Edit.Checks
var audioInfo = Bass.ChannelGetInfo(decodeStream);
if (!allowedFormats.Contains(audioInfo.ChannelType))
yield return new IssueTemplateIncorrectFormat(this).Create(audioFile.Filename, audioInfo.ChannelType.ToString());
yield return new IssueTemplateIncorrectFormat(this).Create(audioFile.Filename);
Bass.StreamFree(decodeStream);
}
@ -63,7 +63,7 @@ namespace osu.Game.Rulesets.Edit.Checks
public class IssueTemplateFormatUnsupported : IssueTemplate
{
public IssueTemplateFormatUnsupported(ICheck check)
: base(check, IssueType.Problem, "\"{0}\" may be corrupt or using a unsupported audio format; Use mp3 or ogg for the song's audio.")
: base(check, IssueType.Problem, "\"{0}\" may be corrupt or using a unsupported audio format. Use mp3 or ogg for the song's audio.")
{
}
@ -73,11 +73,11 @@ namespace osu.Game.Rulesets.Edit.Checks
public class IssueTemplateIncorrectFormat : IssueTemplate
{
public IssueTemplateIncorrectFormat(ICheck check)
: base(check, IssueType.Problem, "\"{0}\" is using a incorrect format ({1}); Use mp3 or ogg for the song's audio.")
: base(check, IssueType.Problem, "\"{0}\" is using a incorrect format. Use mp3 or ogg for the song's audio.")
{
}
public Issue Create(string file, string format) => new Issue(this, file, format);
public Issue Create(string file) => new Issue(this, file);
}
}
}