ModPlug Central

OpenMPT Development (Archive) => Feature Requests => Topic started by: LPChip on September 06, 2010, 10:42:03

Title: Wave out to temp file first
Post by: LPChip on September 06, 2010, 10:42:03
This is a very small request.

Basically, when you export to a wave file, it generates a wavefile on the fly.

The request is that it first exports its wave file to a hidden tempfile in that directory named $!^$~_temp.wav or something like that, and once the wavefile has been exported, it renames the file to the filename you selected.

There are a few reasons behind this request.

1. If you're overwriting a wavefile, and the export fails somehow, then you haven't lost the previous version.

2. I'm running backup software that backups the wavefile during the export so I get a backupped version of say... 260kb, while the wavefile is 15mb.

Because of the 2nd issue, it might require the wave export function to set the last modified date after the export has been completed.

EDIT: On second thought, its best if the file gets written in %TEMP%, and moved when completed. This is the behavior of other programs too.
Title: Wave out to temp file first
Post by: jmkz on September 07, 2010, 05:05:47
I like this one too  :wink: +1
Title: Wave out to temp file first
Post by: LPChip on September 10, 2010, 09:22:36
Posted an edit. See first post.
Title: Re: Wave out to temp file first
Post by: Saga Musix on September 10, 2010, 10:39:58
Quote from: "LPChip"EDIT: On second thought, its best if the file gets written in %TEMP%, and moved when completed. This is the behavior of other programs too.
I'd say that a fair amount of programs which use temp files don't use this. I know quite a few.
Title: Re: Wave out to temp file first
Post by: LPChip on September 10, 2010, 12:07:23
Quote from: "Jojo"
Quote from: "LPChip"EDIT: On second thought, its best if the file gets written in %TEMP%, and moved when completed. This is the behavior of other programs too.
I'd say that a fair amount of programs which use temp files don't use this. I know quite a few.

I didn't say all other programs.

But the alternative would be to have a configurable temp location. Works for me too, but since its only for wave export, %temp% would probably be sufficient.
Title: Re: Wave out to temp file first
Post by: g on September 10, 2010, 23:09:18
I don't really see the problem... I mean, why overwrite a saved wav that you might want to keep? If the export would for some reason crash, you would just re-export it. But what if it didn't crash but just turned out sounding like crap?

For the other issue, I think you need a new back up program. It really should check file size when syncing, not just modified date.
Title: Re: Wave out to temp file first
Post by: LPChip on September 11, 2010, 09:32:27
Quote from: "g"I don't really see the problem... I mean, why overwrite a saved wav that you might want to keep? If the export would for some reason crash, you would just re-export it. But what if it didn't crash but just turned out sounding like crap?

For the other issue, I think you need a new back up program. It really should check file size when syncing, not just modified date.

I can't change my backup program even if its crap. I pay for the service on my ISP and the backup is stored on their servers. I need this functionality in case something happens to my pc and I lose the data on my entire harddrive. I can't afford to lose these files, so I store them online automatically.
Title: Re: Wave out to temp file first
Post by: Saga Musix on September 11, 2010, 11:17:51
Quote from: "LPChip"I can't change my backup program even if its crap. I pay for the service on my ISP and the backup is stored on their servers. I need this functionality in case something happens to my pc and I lose the data on my entire harddrive. I can't afford to lose these files, so I store them online automatically.
It's not like they're aliens and not open to suggestions concerning their backup program, though.
Title: Re: Wave out to temp file first
Post by: LPChip on September 11, 2010, 11:59:16
Quote from: "Jojo"
Quote from: "LPChip"I can't change my backup program even if its crap. I pay for the service on my ISP and the backup is stored on their servers. I need this functionality in case something happens to my pc and I lose the data on my entire harddrive. I can't afford to lose these files, so I store them online automatically.
It's not like they're aliens and not open to suggestions concerning their backup program, though.

They're not aliens and they're not open to feedback either. Besides, I have so much in my backup, I fear that if I complain, they cancel my backup alltogether.
Title: Wave out to temp file first
Post by: Saga Musix on September 11, 2010, 12:51:21
You are not supposed to complain, you are supposed to make a suggestion. Why would a company cancel a contract with their clients if they make a suggestion? They rather implement them, because they might lose their clients if they don't.
Title: Wave out to temp file first
Post by: LPChip on September 11, 2010, 14:37:04
Quote from: "Jojo"You are not supposed to complain, you are supposed to make a suggestion. Why would a company cancel a contract with their clients if they make a suggestion? They rather implement them, because they might lose their clients if they don't.

Come on... don't find excuses so you don't have to do this suggestion. Or you might lose a paying customer ;)
Title: Wave out to temp file first
Post by: Saga Musix on September 11, 2010, 15:46:50
Paying? I don't see any money! :nuts:
Title: Wave out to temp file first
Post by: LPChip on September 11, 2010, 17:34:06
Quote from: "Jojo"Paying? I don't see any money! :nuts:

I know.. so far people are donating... :nuts: :lol: