MCPcopy Create free account
hub / github.com/LabSound/LabSound / set

Method set

include/LabSound/core/AudioChannel.h:49–55  ·  view source on GitHub ↗

Redefine the memory for this channel. storage represents external memory not managed by this object.

Source from the content-addressed store, hash-verified

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; }

Callers

nothing calls this directly

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected