Fix unsigned reporting, and can't match unsigned type declaration exactly

CQTexperiment
Chris Moeller 2013-10-07 11:26:23 -07:00
parent 0d89cf2e6f
commit 2837b12d32
4 changed files with 5 additions and 2 deletions

View File

@ -56,7 +56,7 @@ AudioStreamBasicDescription propertiesToASBD(NSDictionary *properties)
asbd.mFormatFlags |= kLinearPCMFormatFlagIsAlignedHigh;
}
if (isFloat == NO && [[properties objectForKey:@"unsigned"] boolValue] == NO) {
if (isFloat == NO && [[properties objectForKey:@"Unsigned"] boolValue] == NO) {
asbd.mFormatFlags |= kLinearPCMFormatFlagIsSignedInteger;
}

View File

@ -46,6 +46,7 @@
int channels;
int bitsPerSample;
BOOL floatingPoint;
BOOL Unsigned;
float sampleRate;
NSString *endian;
@ -102,6 +103,7 @@
@property int channels;
@property int bitsPerSample;
@property BOOL floatingPoint;
@property BOOL Unsigned;
@property float sampleRate;
@property float replayGainAlbumGain;

View File

@ -39,6 +39,7 @@
@synthesize channels;
@synthesize bitsPerSample;
@synthesize floatingPoint;
@synthesize Unsigned;
@synthesize sampleRate;
@synthesize replayGainAlbumGain;

View File

@ -281,7 +281,7 @@ int lockmgr_callback(void ** mutex, enum AVLockOp op)
return [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithInt:channels], @"channels",
[NSNumber numberWithInt:bitsPerSample], @"bitsPerSample",
[NSNumber numberWithBool:(bitsPerSample == 8)], @"unsigned",
[NSNumber numberWithBool:(bitsPerSample == 8)], @"Unsigned",
[NSNumber numberWithFloat:frequency], @"sampleRate",
[NSNumber numberWithBool:floatingPoint], @"floatingPoint",
[NSNumber numberWithDouble:totalFrames], @"totalFrames",