/*
- Copyright (C) 2006 Paul Davis
+ Copyright (C) 2006 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
*/
-#ifndef __sndfile_source_h__
+#ifndef __sndfile_source_h__
#define __sndfile_source_h__
#include <sndfile.h>
/* Constructor to be called for new in-session files */
SndFileSource (Session&, const Glib::ustring& path, bool embedded,
- SampleFormat samp_format, HeaderFormat hdr_format, nframes_t rate,
+ SampleFormat samp_format, HeaderFormat hdr_format, nframes_t rate,
Flag flags = SndFileSource::default_writable_flags);
-
+
/** Constructor to be called for existing in-session files */
SndFileSource (Session&, const XMLNode&);
int update_header (sframes_t when, struct tm&, time_t);
int flush_header ();
- sframes_t natural_position () const;
+ nframes64_t natural_position () const;
sframes_t last_capture_start_frame() const;
void mark_capture_start (sframes_t);
bool one_of_several_channels () const;
- static void setup_standard_crossfades (nframes_t sample_rate);
+ static void setup_standard_crossfades (Session const &, nframes_t sample_rate);
static const Source::Flag default_writable_flags;
- static int get_soundfile_info (const Glib::ustring& path, SoundFileInfo& _info, string& error_msg);
+ static int get_soundfile_info (const Glib::ustring& path, SoundFileInfo& _info, std::string& error_msg);
protected:
void set_header_timeline_position ();