Redefine the memory for this channel. storage represents external memory not managed by this object.
| 47 | // Redefine the memory for this channel. |
| 48 | // storage represents external memory not managed by this object. |
| 49 | void set(float * storage, int length) |
| 50 | { |
| 51 | m_memBuffer.reset(); // clean up managed storage |
| 52 | m_rawPointer = storage; |
| 53 | m_length = length; |
| 54 | m_silent = false; |
| 55 | } |
| 56 | |
| 57 | // How many sample-frames do we contain? |
| 58 | int length() const { return m_length; } |