diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-01-03 16:52:37 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-01-03 16:52:37 -0300 |
commit | fbdd925d9be1c4c96d05089d7d5a58cd938b002c (patch) | |
tree | 9f4eb2ae7c61450dffb4a86bb5e82cf66e23d496 /drivers/mpc/audio_stream_mpc.cpp | |
parent | eb1f978b1c1693018e9a6d353ca914f8e6586b4e (diff) |
-Work in progress visual shader editor *DOES NOT WORK YET*
Diffstat (limited to 'drivers/mpc/audio_stream_mpc.cpp')
-rw-r--r-- | drivers/mpc/audio_stream_mpc.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/mpc/audio_stream_mpc.cpp b/drivers/mpc/audio_stream_mpc.cpp index d94f57e683..cd8125c9af 100644 --- a/drivers/mpc/audio_stream_mpc.cpp +++ b/drivers/mpc/audio_stream_mpc.cpp @@ -8,6 +8,7 @@ Error AudioStreamMPC::_open_file() { f=NULL; } Error err; + //printf("mpc open file %ls\n", file.c_str()); f=FileAccess::open(file,FileAccess::READ,&err); if (err) { @@ -16,9 +17,10 @@ Error AudioStreamMPC::_open_file() { return err; } - f->seek_end(0); - streamlen=f->get_pos(); - f->seek(0); + //printf("file size is %i\n", f->get_len()); + //f->seek_end(0); + streamlen=f->get_len(); + //f->seek(0); if (streamlen<=0) { memdelete(f); f=NULL; |