Fix unsigned reporting, and can't match unsigned type declaration exactly
parent
0d89cf2e6f
commit
2837b12d32
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
@synthesize channels;
|
||||
@synthesize bitsPerSample;
|
||||
@synthesize floatingPoint;
|
||||
@synthesize Unsigned;
|
||||
@synthesize sampleRate;
|
||||
|
||||
@synthesize replayGainAlbumGain;
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue