Help - Search - Members - Calendar
Full Version: input_pcm::get_samples_pcm() question
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
FrozenSpoon
Sorry if this should be obvious, does input_pcm::get_samples_pcm() make a copy of buffer to use for itself, or does it 'take ownership' of buffer? Thanks.
foosion
input_pcm::get_samples_pcm() does not copy any buffer. It returns a pointer to its own buffer in the source parameter. input_pcm::run() which calls it stores a copy of that data in a regular audio_chunk.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.