Added an overload for subspan without an end in the AudioSpan class
This commit is contained in:
parent
9afa1918a0
commit
563e7624d9
1 changed files with 6 additions and 0 deletions
|
|
@ -201,6 +201,12 @@ public:
|
|||
return { spans, numChannels, offset, length };
|
||||
}
|
||||
|
||||
AudioSpan<Type> subspan(size_type offset)
|
||||
{
|
||||
ASSERT(offset <= numFrames);
|
||||
return { spans, numChannels, offset, numFrames - offset };
|
||||
}
|
||||
|
||||
private:
|
||||
std::array<Type*, MaxChannels> spans;
|
||||
size_type numFrames { 0 };
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue