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

Function MakeBusFromMemory

src/extended/AudioFileReader.cpp:123–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121
122
123std::shared_ptr<AudioBus> MakeBusFromMemory(const std::vector<uint8_t> & buffer, bool mixToMono)
124{
125 std::lock_guard<std::mutex> lock(g_fileIOMutex);
126 nqr::AudioData * audioData = new nqr::AudioData();
127 nyquist_io.Load(audioData, buffer);
128 return detail::LoadInternal(audioData, mixToMono);
129}
130
131std::shared_ptr<AudioBus> MakeBusFromMemory(const std::vector<uint8_t> & buffer, const std::string & extension, bool mixToMono)
132{

Callers

nothing calls this directly

Calls 1

LoadInternalFunction · 0.85

Tested by

no test coverage detected