|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::download_audio_from_gpu | ( | const std::shared_ptr< VKBuffer > & | gpu_buffer, |
| const std::shared_ptr< AudioBuffer > & | audio_buffer, | ||
| const std::shared_ptr< VKBuffer > & | staging = nullptr |
||
| ) |
Download GPU buffer to AudioBuffer (expects double precision)
| gpu_buffer | Source GPU buffer (should contain double precision data) |
| audio_buffer | Target audio buffer (always double[]) |
| staging | Optional staging buffer (auto-created if needed) |
Downloads GPU data and copies to AudioBuffer. If the GPU buffer contains float data instead of double, DataAccess will handle the upconversion (though this is not recommended for audio precision).
Definition at line 373 of file StagingUtils.cpp.
References MayaFlux::Kakshya::AUDIO_1D, MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, MF_DEBUG, MayaFlux::Kakshya::DataDimension::time(), and MayaFlux::Kakshya::DataAccess::view().
Referenced by MayaFlux::Buffers::TransferProcessor::process_gpu_to_audio().
Here is the call graph for this function:
Here is the caller graph for this function: