13
0

Prevent auditioner from writing files to disk

This commit is contained in:
Robin Gareus 2023-01-21 00:37:41 +01:00
parent 02515c2176
commit a3095162de
2 changed files with 7 additions and 4 deletions

View File

@ -33,6 +33,7 @@
#include "ardour/data_type.h"
#include "ardour/delivery.h"
#include "ardour/disk_reader.h"
#include "ardour/disk_writer.h"
#include "ardour/midi_playlist.h"
#include "ardour/midi_region.h"
#include "ardour/plugin_insert.h"
@ -75,6 +76,8 @@ Auditioner::init ()
return -1;
}
_disk_writer->unset_flag (DiskIOProcessor::Recordable);
use_new_playlist (DataType::MIDI);
if (!audition_synth_info) {

View File

@ -1103,6 +1103,10 @@ DiskWriter::use_new_write_source (DataType dt, uint32_t n)
{
_accumulated_capture_offset = 0;
if (!recordable()) {
return 1;
}
if (dt == DataType::MIDI) {
_midi_write_source.reset();
@ -1123,10 +1127,6 @@ DiskWriter::use_new_write_source (DataType dt, uint32_t n)
} else {
boost::shared_ptr<ChannelList> c = channels.reader();
if (!recordable()) {
return 1;
}
if (n >= c->size()) {
error << string_compose (_("AudioDiskstream: channel %1 out of range"), n) << endmsg;
return -1;