Author Topic: How to validate a file ?  (Read 228 times)


  • Posts: 29
How to validate a file ?
« on: 21 Apr '18 - 18:52 »
Hi, I am thinking about problem, like when if you have file with name "best song ever.flac" but for real this is .zip file, how can I check it before trying to play ?

Ian @ un4seen

  • Administrator
  • Posts: 21017
Re: How to validate a file ?
« Reply #1 on: 23 Apr '18 - 17:16 »
Do you mean check if it's a FLAC file? If so, you don't really need to bother. BASS/BASSFLAC will check that itself, ie. a file's format isn't assumed from its extension. If the file format is unrecognised, the error code will be BASS_ERROR_FILEFORM.