Sndfile fix?
This commit is contained in:
parent
e1eabaea4b
commit
4586d7f241
3 changed files with 9 additions and 6 deletions
|
@ -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.
|
||||||
|
|
|
@ -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];
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue