Go to the source code of this file.
Definition at line 10 of file input_helpers.cpp.
11 if (arg > 0 && !filesystem::g_is_remote_or_unrecognized(p_path)) {
12 if (p_file.
is_empty()) filesystem::g_open_read( p_file, p_path, p_abort );
13 if (!p_file->is_in_memory() && !p_file->is_remote() && p_file->can_seek()) {
14 file_cached::g_create( p_file, p_file, p_abort, (
size_t) arg );
Definition at line 3 of file input_helpers.cpp.
4 if (arg > 0 && !filesystem::g_is_remote_or_unrecognized(p_path)) {
6 p_file = a.
open(p_path, p_abort, p_file, arg);
file::ptr open(const char *path, abort_callback &abort, file::ptr hint, t_filesize sizeMax=1024 *1024 *256)
Opens the specified location as a stream of audio_samples.
Returns a file object that allows you to read the audio data stream as if it was a physical file, together with audio stream format description (sample rate, channel layout).
Please keep in mind that certain features of the returned file object are only as reliable as the underlying file format or decoder implementation allows them to be.
Reported exact file size may be either unavailable or unreliable if the file format does not let us known the exact value without decoding the whole file.
Seeking may be inaccurate with certain file formats.
In general, all file object methods will work as intended on core-supported file formats such as FLAC or WavPack.
However, if you want 100% functionality regardless of file format being worked with, mirror the content to a temp file and let go of the file object returned by openAudioData().
Definition at line 591 of file input_helpers.cpp.
593 f->init(loc, bSeekable, fileHint, aborter);
599 }
Template implementing reference-counting features of service_base. Intended for dynamic instantiation...
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.