Page 1 of 1

IsMusic() problem

Posted: Wed Aug 09, 2023 10:56 pm
by djg
Hi,

It appears that IsMusic() has a problem.
After it decides that a file is not music (or audio), you can no longer open it for writing.
StringToFile() also fails, but deleting with DeleteFile() does work, so I guess you could do that first as a workaround.

Example:

Code: Select all

StringToFile("1", "testfile")
StringToFile("2", "testfile")
DebugPrint("IsMusic() returns ", IsMusic("testfile"))
StringToFile("3", "testfile")

Here the third StringToFile() call fails.

Re: IsMusic() problem

Posted: Wed Aug 16, 2023 12:24 pm
by airsoftsoftwair
Right, I can confirm that this is a bug but only seems to happen on Windows. Will be fixed, thanks for reporting!

Re: IsMusic() problem

Posted: Sat Jul 20, 2024 10:38 pm
by airsoftsoftwair

Code: Select all

- Fix [Windows]: IsMusic() in the DirectShow driver didn't release resources correctly so that files that
  couldn't be loaded by the driver still held a filesystem lock