Remove obsolete path param

svn-id: r15278
This commit is contained in:
Max Horn 2004-09-25 23:33:34 +00:00
parent 61b7e2155a
commit f66960c4b9
2 changed files with 3 additions and 7 deletions

View File

@ -67,7 +67,7 @@ static const StreamFileFormat STREAM_FILEFORMATS[] = {
{ NULL, NULL, NULL } // Terminator
};
AudioStream* AudioStream::openStreamFile(const char* filename, const char *path)
AudioStream* AudioStream::openStreamFile(const char *filename)
{
char buffer[1024];
const uint len = strlen(filename);
@ -82,10 +82,7 @@ AudioStream* AudioStream::openStreamFile(const char* filename, const char *path)
for (int i = 0; i < ARRAYSIZE(STREAM_FILEFORMATS)-1 && stream == NULL; ++i) {
strcpy(ext, STREAM_FILEFORMATS[i].fileExtension);
if (path != NULL)
fileHandle->open(buffer, File::kFileReadMode, path);
else
fileHandle->open(buffer);
fileHandle->open(buffer);
if (fileHandle->isOpen())
stream = STREAM_FILEFORMATS[i].openStreamFile(fileHandle, fileHandle->size());
}

View File

@ -82,11 +82,10 @@ public:
* In case of an error, the file handle will be closed, but deleting
* it is still the responsibilty of the caller.
* @param filename a filename without an extension
* @param path an (optional) file path which is passed to File::open()
* @return an Audiostream ready to use in case of success;
* NULL in case of an error (e.g. invalid/nonexisting file)
*/
static AudioStream* openStreamFile(const char *filename, const char *path = NULL);
static AudioStream* openStreamFile(const char *filename);
};
class AppendableAudioStream : public AudioStream {