mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-12 01:26:31 +01:00
remove unused (empty) API
This commit is contained in:
parent
3ec845b1ef
commit
81b38c110a
2 changed files with 8 additions and 27 deletions
|
|
@ -183,7 +183,6 @@ private:
|
||||||
|
|
||||||
int refill (Sample* sum_buffer, Sample* mixdown_buffer, float* gain_buffer, samplecnt_t fill_level);
|
int refill (Sample* sum_buffer, Sample* mixdown_buffer, float* gain_buffer, samplecnt_t fill_level);
|
||||||
int refill_audio (Sample* sum_buffer, Sample *mixdown_buffer, float *gain_buffer, samplecnt_t fill_level);
|
int refill_audio (Sample* sum_buffer, Sample *mixdown_buffer, float *gain_buffer, samplecnt_t fill_level);
|
||||||
int refill_midi ();
|
|
||||||
|
|
||||||
sampleoffset_t calculate_playback_distance (pframes_t);
|
sampleoffset_t calculate_playback_distance (pframes_t);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -762,31 +762,20 @@ DiskReader::_do_refill_with_alloc (bool partial_fill)
|
||||||
the smallest sample value .. 4MB = 2M samples (16 bit).
|
the smallest sample value .. 4MB = 2M samples (16 bit).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
{
|
boost::scoped_array<Sample> sum_buf (new Sample[2*1048576]);
|
||||||
boost::scoped_array<Sample> sum_buf (new Sample[2*1048576]);
|
boost::scoped_array<Sample> mix_buf (new Sample[2*1048576]);
|
||||||
boost::scoped_array<Sample> mix_buf (new Sample[2*1048576]);
|
boost::scoped_array<float> gain_buf (new float[2*1048576]);
|
||||||
boost::scoped_array<float> gain_buf (new float[2*1048576]);
|
|
||||||
|
|
||||||
int ret = refill_audio (sum_buf.get(), mix_buf.get(), gain_buf.get(), (partial_fill ? _chunk_samples : 0));
|
return refill_audio (sum_buf.get(), mix_buf.get(), gain_buf.get(), (partial_fill ? _chunk_samples : 0));
|
||||||
|
|
||||||
if (ret) {
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return refill_midi ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
DiskReader::refill (Sample* sum_buffer, Sample* mixdown_buffer, float* gain_buffer, samplecnt_t fill_level)
|
DiskReader::refill (Sample* sum_buffer, Sample* mixdown_buffer, float* gain_buffer, samplecnt_t fill_level)
|
||||||
{
|
{
|
||||||
int ret = refill_audio (sum_buffer, mixdown_buffer, gain_buffer, fill_level);
|
/* nothing to do here for MIDI - the entire playlist has been rendered
|
||||||
|
* into RAM already.
|
||||||
if (ret) {
|
*/
|
||||||
return ret;
|
return refill_audio (sum_buffer, mixdown_buffer, gain_buffer, fill_level);
|
||||||
}
|
|
||||||
|
|
||||||
return refill_midi ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1173,13 +1162,6 @@ DiskReader::get_midi_playback (MidiBuffer& dst, samplepos_t start_sample, sample
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
DiskReader::refill_midi ()
|
|
||||||
{
|
|
||||||
/* nothing to do ... it's all in RAM thanks to overwrite */
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
DiskReader::dec_no_disk_output ()
|
DiskReader::dec_no_disk_output ()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue