mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-08 08:41:21 +00:00
Warn if ogg sample is not ogg compressed
This commit is contained in:
parent
dcc9c27acf
commit
df58a440f2
1 changed files with 5 additions and 0 deletions
|
@ -2635,6 +2635,11 @@ static int fluid_sffile_read_vorbis(SFData *sf, unsigned int start_byte, unsigne
|
|||
goto error_exit;
|
||||
}
|
||||
|
||||
if((sfinfo.format & SF_FORMAT_OGG) == 0)
|
||||
{
|
||||
FLUID_LOG(FLUID_WARN, "OGG sample is not OGG compressed, this is not officially supported");
|
||||
}
|
||||
|
||||
wav_data = FLUID_ARRAY(short, sfinfo.frames * sfinfo.channels);
|
||||
|
||||
if(!wav_data)
|
||||
|
|
Loading…
Reference in a new issue