mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 11:06:32 +01:00
Remove all use of nframes_t.
git-svn-id: svn://localhost/ardour2/branches/3.0@8166 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
74b4a3c77b
commit
73192bc1a7
280 changed files with 1615 additions and 1628 deletions
|
|
@ -245,7 +245,7 @@ MonitorProcessor::state (bool full)
|
|||
}
|
||||
|
||||
void
|
||||
MonitorProcessor::run (BufferSet& bufs, framepos_t /*start_frame*/, framepos_t /*end_frame*/, nframes_t nframes, bool /*result_required*/)
|
||||
MonitorProcessor::run (BufferSet& bufs, framepos_t /*start_frame*/, framepos_t /*end_frame*/, pframes_t nframes, bool /*result_required*/)
|
||||
{
|
||||
uint32_t chn = 0;
|
||||
gain_t target_gain;
|
||||
|
|
@ -297,7 +297,7 @@ MonitorProcessor::run (BufferSet& bufs, framepos_t /*start_frame*/, framepos_t /
|
|||
|
||||
/* scale the first channel */
|
||||
|
||||
for (nframes_t n = 0; n < nframes; ++n) {
|
||||
for (pframes_t n = 0; n < nframes; ++n) {
|
||||
buf[n] *= scale;
|
||||
}
|
||||
|
||||
|
|
@ -307,7 +307,7 @@ MonitorProcessor::run (BufferSet& bufs, framepos_t /*start_frame*/, framepos_t /
|
|||
for (; b != bufs.audio_end(); ++b) {
|
||||
AudioBuffer& ob (*b);
|
||||
Sample* obuf = ob.data ();
|
||||
for (nframes_t n = 0; n < nframes; ++n) {
|
||||
for (pframes_t n = 0; n < nframes; ++n) {
|
||||
buf[n] += obuf[n] * scale;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue