Sndfile fix?

This commit is contained in:
vspader 2006-04-22 01:26:57 +00:00
parent e1eabaea4b
commit 4586d7f241
3 changed files with 9 additions and 6 deletions

View file

@ -1,3 +1,7 @@
0.05 alpha 5
------------
Hopefully fixes wavpack on intel.
0.05 alpha 4 0.05 alpha 4
------------ ------------
Volume slider now gravitates to 100%, in the middle. Volume slider now gravitates to 100%, in the middle.

View file

@ -188,9 +188,9 @@
- (void)readInfo - (void)readInfo
{ {
SoundFile *sp;
SoundFile *sf = [SoundFile readInfo:filename]; SoundFile *sf = [SoundFile readInfo:filename];
sp= sf; if (sf == nil)
return;
length = [sf length]; length = [sf length];
bitRate = [sf bitRate]; bitRate = [sf bitRate];

View file

@ -144,13 +144,12 @@ BOOL hostIsBigEndian()
soundFile = [SoundFile soundFileFromFilename:filename]; soundFile = [SoundFile soundFileFromFilename:filename];
b = [soundFile readInfo:[filename UTF8String]]; b = [soundFile readInfo:[filename UTF8String]];
if (b == NO)
return nil;
[soundFile close]; [soundFile close];
if (b == YES) return soundFile;
return soundFile;
return nil;
} }
- (void)reset - (void)reset