source file of the GNU LilyPond music typesetter
- (c) 1997--2003 Jan Nieuwenhuizen <janneke@gnu.org>
+ (c) 1997--2004 Jan Nieuwenhuizen <janneke@gnu.org>
*/
+#include "midi-stream.hh"
#include "stream.hh"
-#include "string.hh"
#include "string-convert.hh"
#include "main.hh"
#include "misc.hh"
#include "midi-item.hh"
-#include "midi-stream.hh"
#include "warn.hh"
#include "scm-option.hh"
-Midi_stream::Midi_stream (String filename)
+Midi_stream::Midi_stream (String file_name)
{
- filename_string_ = filename;
- out_file_ = fopen (filename.to_str0(), "wb");
+ file_name_string_ = file_name;
+ out_file_ = fopen (file_name.to_str0(), "wb");
}
Midi_stream::~Midi_stream ()
sz, n, out_file_);
if (written != sz * n)
- {
- warning ("Could not write file. Disk full?");
- }
+ warning (_ ("could not write file: `%s'"));
return *this;
}