From 01ffc63b2e887824d3c6d20155e7e7153171c559 Mon Sep 17 00:00:00 2001 From: Oleg Samarin Date: Thu, 4 Jan 2024 11:15:34 +0300 Subject: [PATCH] Removed parameter names from comments --- src/grandorgue/loader/GOLoaderFilename.h | 2 +- src/grandorgue/model/GOCacheObject.cpp | 2 +- src/grandorgue/model/GOCacheObject.h | 2 +- src/grandorgue/model/GOSoundingPipe.cpp | 2 +- src/grandorgue/sound/GOSoundAudioSection.cpp | 25 +++++++++---------- src/grandorgue/sound/GOSoundAudioSection.h | 2 +- .../sound/GOSoundProviderSynthedTrem.cpp | 2 +- src/grandorgue/sound/GOSoundProviderWave.cpp | 2 +- src/grandorgue/sound/GOSoundProviderWave.h | 2 +- 9 files changed, 20 insertions(+), 21 deletions(-) diff --git a/src/grandorgue/loader/GOLoaderFilename.h b/src/grandorgue/loader/GOLoaderFilename.h index f3c6c4efe..23d3ff2dd 100644 --- a/src/grandorgue/loader/GOLoaderFilename.h +++ b/src/grandorgue/loader/GOLoaderFilename.h @@ -1,6 +1,6 @@ /* * Copyright 2006 Milan Digital Audio LLC - * Copyright 2009-2023 GrandOrgue contributors (see AUTHORS) + * Copyright 2009-2024 GrandOrgue contributors (see AUTHORS) * License GPL-2.0 or later * (https://www.gnu.org/licenses/old-licenses/gpl-2.0.html). */ diff --git a/src/grandorgue/model/GOCacheObject.cpp b/src/grandorgue/model/GOCacheObject.cpp index 5f4b6af05..86ec7dd3e 100644 --- a/src/grandorgue/model/GOCacheObject.cpp +++ b/src/grandorgue/model/GOCacheObject.cpp @@ -1,6 +1,6 @@ /* * Copyright 2006 Milan Digital Audio LLC - * Copyright 2009-2023 GrandOrgue contributors (see AUTHORS) + * Copyright 2009-2024 GrandOrgue contributors (see AUTHORS) * License GPL-2.0 or later * (https://www.gnu.org/licenses/old-licenses/gpl-2.0.html). */ diff --git a/src/grandorgue/model/GOCacheObject.h b/src/grandorgue/model/GOCacheObject.h index 1055d95ee..d217db050 100644 --- a/src/grandorgue/model/GOCacheObject.h +++ b/src/grandorgue/model/GOCacheObject.h @@ -1,6 +1,6 @@ /* * Copyright 2006 Milan Digital Audio LLC - * Copyright 2009-2023 GrandOrgue contributors (see AUTHORS) + * Copyright 2009-2024 GrandOrgue contributors (see AUTHORS) * License GPL-2.0 or later * (https://www.gnu.org/licenses/old-licenses/gpl-2.0.html). */ diff --git a/src/grandorgue/model/GOSoundingPipe.cpp b/src/grandorgue/model/GOSoundingPipe.cpp index 3218f5233..7d3baaacb 100644 --- a/src/grandorgue/model/GOSoundingPipe.cpp +++ b/src/grandorgue/model/GOSoundingPipe.cpp @@ -1,6 +1,6 @@ /* * Copyright 2006 Milan Digital Audio LLC - * Copyright 2009-2023 GrandOrgue contributors (see AUTHORS) + * Copyright 2009-2024 GrandOrgue contributors (see AUTHORS) * License GPL-2.0 or later * (https://www.gnu.org/licenses/old-licenses/gpl-2.0.html). */ diff --git a/src/grandorgue/sound/GOSoundAudioSection.cpp b/src/grandorgue/sound/GOSoundAudioSection.cpp index 34c3657f6..acb654ca1 100644 --- a/src/grandorgue/sound/GOSoundAudioSection.cpp +++ b/src/grandorgue/sound/GOSoundAudioSection.cpp @@ -1,6 +1,6 @@ /* * Copyright 2006 Milan Digital Audio LLC - * Copyright 2009-2023 GrandOrgue contributors (see AUTHORS) + * Copyright 2009-2024 GrandOrgue contributors (see AUTHORS) * License GPL-2.0 or later * (https://www.gnu.org/licenses/old-licenses/gpl-2.0.html). */ @@ -748,19 +748,18 @@ void GOAudioSection::Setup( loop_length * m_BytesPerSample, (end_length - copy_len) * m_BytesPerSample); if (fade_len > 0) - // TODO: Remove the parameter names from the comment and reduce the - // number of parameters of DoCrossfade that the call would be easy - // readable without additional comments + // TODO: reduce the number of parameters of DoCrossfade that the call + // would be easy readable without additional comments DoCrossfade( - end_seg.end_data, // dest - MAX_READAHEAD, // dest_offset - (const unsigned char *)pcm_data, // src - start_seg.start_offset - fade_len, // src_offset - pcm_data_channels, // channels - m_BitsPerSample, // bits_per_sample - fade_len, // fade_length - loop_length, // loop_length - end_length); // length + end_seg.end_data, + MAX_READAHEAD, + (const unsigned char *)pcm_data, + start_seg.start_offset - fade_len, + pcm_data_channels, + m_BitsPerSample, + fade_len, + loop_length, + end_length); end_seg.end_loop_length = loop_length; end_seg.end_pos = end_length + end_seg.transition_offset; diff --git a/src/grandorgue/sound/GOSoundAudioSection.h b/src/grandorgue/sound/GOSoundAudioSection.h index e9b7c8902..8cb605457 100644 --- a/src/grandorgue/sound/GOSoundAudioSection.h +++ b/src/grandorgue/sound/GOSoundAudioSection.h @@ -1,6 +1,6 @@ /* * Copyright 2006 Milan Digital Audio LLC - * Copyright 2009-2023 GrandOrgue contributors (see AUTHORS) + * Copyright 2009-2024 GrandOrgue contributors (see AUTHORS) * License GPL-2.0 or later * (https://www.gnu.org/licenses/old-licenses/gpl-2.0.html). */ diff --git a/src/grandorgue/sound/GOSoundProviderSynthedTrem.cpp b/src/grandorgue/sound/GOSoundProviderSynthedTrem.cpp index 9406f47c3..969956524 100644 --- a/src/grandorgue/sound/GOSoundProviderSynthedTrem.cpp +++ b/src/grandorgue/sound/GOSoundProviderSynthedTrem.cpp @@ -1,6 +1,6 @@ /* * Copyright 2006 Milan Digital Audio LLC - * Copyright 2009-2023 GrandOrgue contributors (see AUTHORS) + * Copyright 2009-2024 GrandOrgue contributors (see AUTHORS) * License GPL-2.0 or later * (https://www.gnu.org/licenses/old-licenses/gpl-2.0.html). */ diff --git a/src/grandorgue/sound/GOSoundProviderWave.cpp b/src/grandorgue/sound/GOSoundProviderWave.cpp index 7514b493d..04a38987b 100644 --- a/src/grandorgue/sound/GOSoundProviderWave.cpp +++ b/src/grandorgue/sound/GOSoundProviderWave.cpp @@ -1,6 +1,6 @@ /* * Copyright 2006 Milan Digital Audio LLC - * Copyright 2009-2023 GrandOrgue contributors (see AUTHORS) + * Copyright 2009-2024 GrandOrgue contributors (see AUTHORS) * License GPL-2.0 or later * (https://www.gnu.org/licenses/old-licenses/gpl-2.0.html). */ diff --git a/src/grandorgue/sound/GOSoundProviderWave.h b/src/grandorgue/sound/GOSoundProviderWave.h index edd9f7b27..441d5d23a 100644 --- a/src/grandorgue/sound/GOSoundProviderWave.h +++ b/src/grandorgue/sound/GOSoundProviderWave.h @@ -1,6 +1,6 @@ /* * Copyright 2006 Milan Digital Audio LLC - * Copyright 2009-2023 GrandOrgue contributors (see AUTHORS) + * Copyright 2009-2024 GrandOrgue contributors (see AUTHORS) * License GPL-2.0 or later * (https://www.gnu.org/licenses/old-licenses/gpl-2.0.html). */