Cleanup
This commit is contained in:
@@ -167,7 +167,7 @@ namespace lime {
|
||||
|
||||
#define BUFFER_SIZE 4096
|
||||
|
||||
vorbis_info *pInfo = ov_info (&oggFile, -1);
|
||||
vorbis_info *pInfo = ov_info (&oggFile, -1);
|
||||
|
||||
if (pInfo == NULL) {
|
||||
|
||||
|
||||
@@ -53,17 +53,10 @@ namespace lime {
|
||||
|
||||
if (resource->path) {
|
||||
|
||||
//#ifdef ANDROID
|
||||
//FileInfo info = AndroidGetAssetFD (resource->path);
|
||||
//file = fdopen (info.fd, "rb");
|
||||
//lime::fseek (file, info.offset, 0);
|
||||
//#else
|
||||
file = lime::fopen (resource->path, "rb");
|
||||
//#endif
|
||||
|
||||
if (!file) {
|
||||
|
||||
//LOG_SOUND ("FAILED to read audio file, file pointer as null?\n");
|
||||
return false;
|
||||
|
||||
}
|
||||
@@ -72,7 +65,6 @@ namespace lime {
|
||||
|
||||
if ((riff_header.chunkID[0] != 'R' || riff_header.chunkID[1] != 'I' || riff_header.chunkID[2] != 'F' || riff_header.chunkID[3] != 'F') || (riff_header.format[0] != 'W' || riff_header.format[1] != 'A' || riff_header.format[2] != 'V' || riff_header.format[3] != 'E')) {
|
||||
|
||||
//LOG_SOUND ("Invalid RIFF or WAVE Header!\n");
|
||||
lime::fclose (file);
|
||||
return false;
|
||||
|
||||
@@ -106,12 +98,6 @@ namespace lime {
|
||||
|
||||
}
|
||||
|
||||
//if (wave_format.subChunkSize > 16) {
|
||||
//
|
||||
//lime::fseek (file, sizeof (short), SEEK_CUR);
|
||||
//
|
||||
//}
|
||||
|
||||
bool foundData = false;
|
||||
|
||||
while (!foundData) {
|
||||
@@ -162,7 +148,6 @@ namespace lime {
|
||||
|
||||
if ((riff_header.chunkID[0] != 'R' || riff_header.chunkID[1] != 'I' || riff_header.chunkID[2] != 'F' || riff_header.chunkID[3] != 'F') || (riff_header.format[0] != 'W' || riff_header.format[1] != 'A' || riff_header.format[2] != 'V' || riff_header.format[3] != 'E')) {
|
||||
|
||||
//LOG_SOUND ("Invalid RIFF or WAVE Header!\n");
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user