summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_export_audio.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/editor_export_audio.cc')
-rw-r--r--gtk2_ardour/editor_export_audio.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/gtk2_ardour/editor_export_audio.cc b/gtk2_ardour/editor_export_audio.cc
index 1a4f88e2f2..8159b784bc 100644
--- a/gtk2_ardour/editor_export_audio.cc
+++ b/gtk2_ardour/editor_export_audio.cc
@@ -213,11 +213,11 @@ bool
Editor::write_region (string path, boost::shared_ptr<AudioRegion> region)
{
boost::shared_ptr<AudioFileSource> fs;
- const framepos_t chunk_size = 4096;
- framepos_t to_read;
+ const samplepos_t chunk_size = 4096;
+ samplepos_t to_read;
Sample buf[chunk_size];
gain_t gain_buffer[chunk_size];
- framepos_t pos;
+ samplepos_t pos;
char s[PATH_MAX+1];
uint32_t cnt;
vector<boost::shared_ptr<AudioFileSource> > sources;
@@ -266,7 +266,7 @@ Editor::write_region (string path, boost::shared_ptr<AudioRegion> region)
fs = boost::dynamic_pointer_cast<AudioFileSource> (
SourceFactory::createWritable (DataType::AUDIO, *_session,
path, true,
- false, _session->frame_rate()));
+ false, _session->sample_rate()));
}
catch (failed_constructor& err) {
@@ -285,7 +285,7 @@ Editor::write_region (string path, boost::shared_ptr<AudioRegion> region)
pos = region->position();
while (to_read) {
- framepos_t this_time;
+ samplepos_t this_time;
this_time = min (to_read, chunk_size);
@@ -363,11 +363,11 @@ bool
Editor::write_audio_range (AudioPlaylist& playlist, const ChanCount& count, list<AudioRange>& range)
{
boost::shared_ptr<AudioFileSource> fs;
- const framepos_t chunk_size = 4096;
- framepos_t nframes;
+ const samplepos_t chunk_size = 4096;
+ samplepos_t nframes;
Sample buf[chunk_size];
gain_t gain_buffer[chunk_size];
- framepos_t pos;
+ samplepos_t pos;
char s[PATH_MAX+1];
uint32_t cnt;
string path;
@@ -405,7 +405,7 @@ Editor::write_audio_range (AudioPlaylist& playlist, const ChanCount& count, list
fs = boost::dynamic_pointer_cast<AudioFileSource> (
SourceFactory::createWritable (DataType::AUDIO, *_session,
path, true,
- false, _session->frame_rate()));
+ false, _session->sample_rate()));
}
catch (failed_constructor& err) {
@@ -423,7 +423,7 @@ Editor::write_audio_range (AudioPlaylist& playlist, const ChanCount& count, list
pos = (*i).start;
while (nframes) {
- framepos_t this_time;
+ samplepos_t this_time;
this_time = min (nframes, chunk_size);
@@ -455,7 +455,7 @@ Editor::write_audio_range (AudioPlaylist& playlist, const ChanCount& count, list
while (nframes) {
- framepos_t this_time = min (nframes, chunk_size);
+ samplepos_t this_time = min (nframes, chunk_size);
memset (buf, 0, sizeof (Sample) * this_time);
for (uint32_t n=0; n < channels; ++n) {