mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
hmm, reevaluate load_from_mem
This commit is contained in:
parent
966bf9a566
commit
a304976e9b
@ -171,6 +171,8 @@ HAUDIO MilesAudioManager::
|
|||||||
load(Filename file_name) {
|
load(Filename file_name) {
|
||||||
HAUDIO audio;
|
HAUDIO audio;
|
||||||
|
|
||||||
|
/*
|
||||||
|
// This is broken for some reason.
|
||||||
if (use_vfs) {
|
if (use_vfs) {
|
||||||
VirtualFileSystem *vfs = VirtualFileSystem::get_global_ptr();
|
VirtualFileSystem *vfs = VirtualFileSystem::get_global_ptr();
|
||||||
audio_debug(" vfs load \"" << file_name << "\"");
|
audio_debug(" vfs load \"" << file_name << "\"");
|
||||||
@ -178,7 +180,7 @@ load(Filename file_name) {
|
|||||||
vfs->read_file(file_name, audio_data);
|
vfs->read_file(file_name, audio_data);
|
||||||
audio = AIL_quick_load_mem(audio_data.data(), audio_data.size());
|
audio = AIL_quick_load_mem(audio_data.data(), audio_data.size());
|
||||||
|
|
||||||
} else {
|
} else */ {
|
||||||
string stmp = file_name.to_os_specific();
|
string stmp = file_name.to_os_specific();
|
||||||
audio_debug(" \"" << stmp << "\"");
|
audio_debug(" \"" << stmp << "\"");
|
||||||
audio = AIL_quick_load(stmp.c_str());
|
audio = AIL_quick_load(stmp.c_str());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user