MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ create_tap_set() [2/2]

MAYAFLUX_API Kriya::TapSetBuilder MayaFlux::create_tap_set ( uint32_t  num_samples = 48000 *5,
bool  truncate = true 
)

Begin describing several taps that read a file picked in a dialog.

Same as the path form, with the file chosen in a native open-file dialog.

Returns
Builder. If nothing is chosen or loaded, start() returns an empty TapSet.

Definition at line 148 of file Rigs.cpp.

149{
150 auto stream = choose_audio_bounded(num_samples, truncate);
151
152 if (!stream) {
153 MF_ERROR(Journal::Component::API, Journal::Context::FileIO,
154 "create_tap_set: no file chosen");
155 }
156
157 return create_tap_set_from_stream(std::move(stream));
158}
#define MF_ERROR(comp, ctx,...)
Core::GlobalStreamInfo stream
Definition Config.cpp:40
std::shared_ptr< Kakshya::DynamicSoundStream > choose_audio_bounded(uint64_t max_frames, bool truncate)
Present a native open-file dialog filtered to audio formats and load the chosen file via IOManager::l...
Definition Depot.cpp:204

References MayaFlux::Journal::API, choose_audio_bounded(), create_tap_set_from_stream(), MayaFlux::Journal::FileIO, MF_ERROR, and stream.

+ Here is the call graph for this function: