Make love.sound.newDecoder accept FileData, and make File->read return FileData

This commit is contained in:
Bart van Strien
2012-10-14 17:19:40 +02:00
parent e6711b2837
commit 33d7115887
7 changed files with 26 additions and 15 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ int64 File::getSize()
}
Data *File::read(int64 size)
FileData *File::read(int64 size)
{
bool isOpen = (file != 0);
+1 -1
View File
@@ -69,7 +69,7 @@ public:
bool open(Mode mode);
bool close();
int64 getSize();
Data *read(int64 size = ALL);
FileData *read(int64 size = ALL);
int64 read(void *dst, int64 size);
bool write(const void *data, int64 size);
bool write(const Data *data, int64 size = ALL);