AudioAnalysis::AudioAnalysis (boost::filesystem::path filename)
{
FILE* f = fopen_boost (filename, "r");
+ if (!f) {
+ throw OpenFileError (filename);
+ }
int channels = 0;
fscanf (f, "%d", &channels);
tmp.replace_extension (".tmp");
FILE* f = fopen_boost (tmp, "w");
+ if (!f) {
+ throw OpenFileError (tmp);
+ }
fprintf (f, "%ld\n", _data.size ());
for (vector<vector<AudioPoint> >::iterator i = _data.begin(); i != _data.end(); ++i) {
{
boost::filesystem::path const info = film->info_path (frame, eyes);
FILE* h = fopen_boost (info, "w");
+ if (!h) {
+ throw OpenFileError (info);
+ }
fin.write (h);
fclose (h);
}