Update route API for silent processing
This commit is contained in:
parent
191fdfda72
commit
57a1dbb375
|
@ -152,7 +152,7 @@ public:
|
||||||
|
|
||||||
int no_roll (pframes_t nframes, samplepos_t start_sample, samplepos_t end_sample, bool state_changing);
|
int no_roll (pframes_t nframes, samplepos_t start_sample, samplepos_t end_sample, bool state_changing);
|
||||||
|
|
||||||
int silent_roll (pframes_t nframes, samplepos_t start_sample, samplepos_t end_sample, bool& need_butler);
|
int silence (pframes_t);
|
||||||
|
|
||||||
virtual bool declick_in_progress () const { return false; }
|
virtual bool declick_in_progress () const { return false; }
|
||||||
virtual bool can_record() { return false; }
|
virtual bool can_record() { return false; }
|
||||||
|
@ -684,8 +684,7 @@ protected:
|
||||||
|
|
||||||
int configure_processors (ProcessorStreams*);
|
int configure_processors (ProcessorStreams*);
|
||||||
|
|
||||||
void silence (samplecnt_t);
|
void silence_unlocked (pframes_t);
|
||||||
void silence_unlocked (samplecnt_t);
|
|
||||||
|
|
||||||
ChanCount processor_max_streams;
|
ChanCount processor_max_streams;
|
||||||
ChanCount processor_out_streams;
|
ChanCount processor_out_streams;
|
||||||
|
|
|
@ -3328,19 +3328,20 @@ Route::set_processor_state (XMLNode const& node, int version, XMLProperty const*
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
int
|
||||||
Route::silence (samplecnt_t nframes)
|
Route::silence (pframes_t nframes)
|
||||||
{
|
{
|
||||||
Glib::Threads::RWLock::ReaderLock lm (_processor_lock, Glib::Threads::TRY_LOCK);
|
Glib::Threads::RWLock::ReaderLock lm (_processor_lock, Glib::Threads::TRY_LOCK);
|
||||||
if (!lm.locked()) {
|
if (!lm.locked()) {
|
||||||
return;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
silence_unlocked (nframes);
|
silence_unlocked (nframes);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Route::silence_unlocked (samplecnt_t nframes)
|
Route::silence_unlocked (pframes_t nframes)
|
||||||
{
|
{
|
||||||
/* Must be called with the processor lock held */
|
/* Must be called with the processor lock held */
|
||||||
|
|
||||||
|
@ -4054,14 +4055,6 @@ Route::no_roll_unlocked (pframes_t nframes, samplepos_t start_sample, samplepos_
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
Route::silent_roll (pframes_t nframes, samplepos_t /*start_sample*/, samplepos_t /*end_sample*/, bool& /* need_butler */)
|
|
||||||
{
|
|
||||||
silence (nframes);
|
|
||||||
flush_processor_buffers_locked (nframes);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
Route::update_send_delaylines ()
|
Route::update_send_delaylines ()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user