diff options
author | Jörg Müller <nexyon@gmail.com> | 2022-04-22 23:36:04 +0300 |
---|---|---|
committer | Jörg Müller <nexyon@gmail.com> | 2022-04-22 23:36:04 +0300 |
commit | ac8beb4fda6f6cdfd658aeee05f9eba55ba3d8cc (patch) | |
tree | cff98a9a4faac0aa5cd46b57f13d26df18160b21 /extern/audaspace/src/util/Buffer.cpp | |
parent | ff6098345a6e0fca508d0e104976d54ca199f273 (diff) |
Fix T97453: Blender crash when selecting Caching checkbox in VSE
Merge Audaspace fixes from upstream.
Diffstat (limited to 'extern/audaspace/src/util/Buffer.cpp')
-rw-r--r-- | extern/audaspace/src/util/Buffer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extern/audaspace/src/util/Buffer.cpp b/extern/audaspace/src/util/Buffer.cpp index d212278cacc..9c0314b4bea 100644 --- a/extern/audaspace/src/util/Buffer.cpp +++ b/extern/audaspace/src/util/Buffer.cpp @@ -25,7 +25,7 @@ AUD_NAMESPACE_BEGIN -Buffer::Buffer(int size) +Buffer::Buffer(long long size) { m_size = size; m_buffer = (data_t*) std::malloc(size + ALIGNMENT); @@ -41,12 +41,12 @@ sample_t* Buffer::getBuffer() const return (sample_t*) ALIGN(m_buffer); } -int Buffer::getSize() const +long long Buffer::getSize() const { return m_size; } -void Buffer::resize(int size, bool keep) +void Buffer::resize(long long size, bool keep) { if(keep) { @@ -63,7 +63,7 @@ void Buffer::resize(int size, bool keep) m_size = size; } -void Buffer::assureSize(int size, bool keep) +void Buffer::assureSize(long long size, bool keep) { if(m_size < size) resize(size, keep); |