mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
Add StkFrames constructor that wraps pointer to existing buffer
This commit is contained in:
@@ -285,6 +285,9 @@ public:
|
||||
//! Overloaded constructor that initializes the frame data to the specified size with \c value.
|
||||
StkFrames( const StkFloat& value, unsigned int nFrames, unsigned int nChannels );
|
||||
|
||||
//! Overloaded constructor that wraps the provided pointer to \c data.
|
||||
StkFrames( StkFloat* data, unsigned int nFrames, unsigned int nChannels = 1 );
|
||||
|
||||
//! The destructor.
|
||||
~StkFrames();
|
||||
|
||||
@@ -440,6 +443,7 @@ private:
|
||||
unsigned int nChannels_;
|
||||
size_t size_;
|
||||
size_t bufferSize_;
|
||||
bool ownData_;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user