#include <cmath>
#include <iostream>
#include <stdint.h>
+
+#include <glib/gstdio.h>
+
#include "libsmf/smf.h"
+
#include "evoral/Event.hpp"
#include "evoral/SMF.hpp"
#include "evoral/midi_util.h"
bool
SMF::test(const std::string& path)
{
- FILE* f = fopen(path.c_str(), "r");
+ FILE* f = g_fopen(path.c_str(), "r");
if (f == 0) {
return false;
}
smf_delete(_smf);
}
- FILE* f = fopen(path.c_str(), "r");
+ FILE* f = g_fopen(path.c_str(), "r");
if (f == 0) {
return -1;
} else if ((_smf = smf_load(f)) == 0) {
{
/* put a stub file on disk */
- FILE* f = fopen (path.c_str(), "w+");
+ FILE* f = g_fopen (path.c_str(), "w+");
if (f == 0) {
return -1;
}
return;
}
- FILE* f = fopen (path.c_str(), "w+");
+ FILE* f = g_fopen (path.c_str(), "w+");
if (f == 0) {
throw FileError (path);
}