Fix unsigned reporting, and can't match unsigned type declaration exactly
This commit is contained in:
parent
0d89cf2e6f
commit
2837b12d32
4 changed files with 5 additions and 2 deletions
|
@ -56,7 +56,7 @@ AudioStreamBasicDescription propertiesToASBD(NSDictionary *properties)
|
||||||
asbd.mFormatFlags |= kLinearPCMFormatFlagIsAlignedHigh;
|
asbd.mFormatFlags |= kLinearPCMFormatFlagIsAlignedHigh;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isFloat == NO && [[properties objectForKey:@"unsigned"] boolValue] == NO) {
|
if (isFloat == NO && [[properties objectForKey:@"Unsigned"] boolValue] == NO) {
|
||||||
asbd.mFormatFlags |= kLinearPCMFormatFlagIsSignedInteger;
|
asbd.mFormatFlags |= kLinearPCMFormatFlagIsSignedInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
int channels;
|
int channels;
|
||||||
int bitsPerSample;
|
int bitsPerSample;
|
||||||
BOOL floatingPoint;
|
BOOL floatingPoint;
|
||||||
|
BOOL Unsigned;
|
||||||
float sampleRate;
|
float sampleRate;
|
||||||
|
|
||||||
NSString *endian;
|
NSString *endian;
|
||||||
|
@ -102,6 +103,7 @@
|
||||||
@property int channels;
|
@property int channels;
|
||||||
@property int bitsPerSample;
|
@property int bitsPerSample;
|
||||||
@property BOOL floatingPoint;
|
@property BOOL floatingPoint;
|
||||||
|
@property BOOL Unsigned;
|
||||||
@property float sampleRate;
|
@property float sampleRate;
|
||||||
|
|
||||||
@property float replayGainAlbumGain;
|
@property float replayGainAlbumGain;
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
@synthesize channels;
|
@synthesize channels;
|
||||||
@synthesize bitsPerSample;
|
@synthesize bitsPerSample;
|
||||||
@synthesize floatingPoint;
|
@synthesize floatingPoint;
|
||||||
|
@synthesize Unsigned;
|
||||||
@synthesize sampleRate;
|
@synthesize sampleRate;
|
||||||
|
|
||||||
@synthesize replayGainAlbumGain;
|
@synthesize replayGainAlbumGain;
|
||||||
|
|
|
@ -281,7 +281,7 @@ int lockmgr_callback(void ** mutex, enum AVLockOp op)
|
||||||
return [NSDictionary dictionaryWithObjectsAndKeys:
|
return [NSDictionary dictionaryWithObjectsAndKeys:
|
||||||
[NSNumber numberWithInt:channels], @"channels",
|
[NSNumber numberWithInt:channels], @"channels",
|
||||||
[NSNumber numberWithInt:bitsPerSample], @"bitsPerSample",
|
[NSNumber numberWithInt:bitsPerSample], @"bitsPerSample",
|
||||||
[NSNumber numberWithBool:(bitsPerSample == 8)], @"unsigned",
|
[NSNumber numberWithBool:(bitsPerSample == 8)], @"Unsigned",
|
||||||
[NSNumber numberWithFloat:frequency], @"sampleRate",
|
[NSNumber numberWithFloat:frequency], @"sampleRate",
|
||||||
[NSNumber numberWithBool:floatingPoint], @"floatingPoint",
|
[NSNumber numberWithBool:floatingPoint], @"floatingPoint",
|
||||||
[NSNumber numberWithDouble:totalFrames], @"totalFrames",
|
[NSNumber numberWithDouble:totalFrames], @"totalFrames",
|
||||||
|
|
Loading…
Reference in a new issue