You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That one leaves no trace.
Although I am not sure if it is wanted behaviour ... ? Maybe it is in line with what flac -f file.wav does otherwise, which is (I think?) delete file.flac first and then do whatever comes out of it. Most likely a user who gives flac -f file.wav wants file.flac overwritten with a valid lossless file or not overwritten at all, but that isn't the behaviour in other situations either?
I'm unsure whether fixing this would be an improvement.
As far as I know, currently, using -f always results in the deletion of any file that has the name of the intended output file. I could take a look at the code whether it is possible to delay the removal of that file until as late as possible. That would 'solve' a few cases like this, but then behaviour isn't as consistent anymore: it is no longer clear when the file will be removed and when it will not be. An error during initialization might be 'caught', but an error during encoding itself will not be. For a user, it is no longer clear what to expect.
Furthermore, in the specific case you mention, it is reasonable to assume the user will try again, overwriting the file anyway.
1.4.2 for Windows, the file is CDDA so that -b8192 is out of subset.
Scenario 1:
flac -fb8192 file.flac
Result: Leaves zero-byte .tmp,fl-ac+en'c . At least it tells me what file I failed at.
Scenario 2:
flac -t file.flac
flac -fb8192 file.wav
Result: Overwrites file.flac with a zero-byte file.
Expected: at least in the last scenario, it should throw error and do nothing at all?
The text was updated successfully, but these errors were encountered: