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:
parent
68e86b5105
commit
92b85beff6
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user