1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-10 06:36:24 +01:00

More use of constSamplePtr instead of samplePtr

This commit is contained in:
Paul Licameli
2020-11-29 19:09:58 -05:00
parent 82e8532ee5
commit 9d6dd45973
13 changed files with 46 additions and 43 deletions

View File

@@ -117,7 +117,7 @@ public:
virtual ~SampleBlockFactory();
// Returns a non-null pointer or else throws an exception
SampleBlockPtr Create(samplePtr src,
SampleBlockPtr Create(constSamplePtr src,
size_t numsamples,
sampleFormat srcformat);
@@ -145,7 +145,7 @@ public:
protected:
// The override should throw more informative exceptions on error than the
// default InconsistencyException thrown by Create
virtual SampleBlockPtr DoCreate(samplePtr src,
virtual SampleBlockPtr DoCreate(constSamplePtr src,
size_t numsamples,
sampleFormat srcformat) = 0;