summaryrefslogtreecommitdiffstats
path: root/src/server/Buffer.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-18 01:41:54 -0400
committerDavid Robillard <d@drobilla.net>2022-08-18 01:41:54 -0400
commit4564d719745848386a0662a44a47a8400c799560 (patch)
tree2e17ed86462390a10425e910d23d96bea582c08c /src/server/Buffer.cpp
parent590f82cba0752f41226bbdbf352753cf336ec758 (diff)
downloadingen-4564d719745848386a0662a44a47a8400c799560.tar.gz
ingen-4564d719745848386a0662a44a47a8400c799560.tar.bz2
ingen-4564d719745848386a0662a44a47a8400c799560.zip
Use a consistent style for FOREACH macros
Diffstat (limited to 'src/server/Buffer.cpp')
-rw-r--r--src/server/Buffer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/Buffer.cpp b/src/server/Buffer.cpp
index 199d858b..426cdb27 100644
--- a/src/server/Buffer.cpp
+++ b/src/server/Buffer.cpp
@@ -132,7 +132,7 @@ Buffer::render_sequence(const RunContext& ctx, const Buffer* src, bool add)
float value = init ? init->body : 0.0f;
SampleCount offset = ctx.offset();
- LV2_ATOM_SEQUENCE_FOREACH(seq, ev) {
+ LV2_ATOM_SEQUENCE_FOREACH (seq, ev) {
if (ev->time.frames >= offset && ev->body.type == atom_Float) {
write_block(value, offset, ev->time.frames, add);
value = reinterpret_cast<const LV2_Atom_Float*>(&ev->body)->body;
@@ -362,7 +362,7 @@ Buffer::next_value_offset(SampleCount offset, SampleCount end) const
{
if (_type == _factory.uris().atom_Sequence && _value_type) {
const auto* seq = get<const LV2_Atom_Sequence>();
- LV2_ATOM_SEQUENCE_FOREACH(seq, ev) {
+ LV2_ATOM_SEQUENCE_FOREACH (seq, ev) {
if (ev->time.frames > offset &&
ev->time.frames < end &&
ev->body.type == _value_type) {
@@ -415,7 +415,7 @@ Buffer::update_value_buffer(SampleCount offset)
auto* seq = get<LV2_Atom_Sequence>();
LV2_Atom_Event* latest = nullptr;
- LV2_ATOM_SEQUENCE_FOREACH(seq, ev) {
+ LV2_ATOM_SEQUENCE_FOREACH (seq, ev) {
if (ev->time.frames > offset) {
break;
}