mtcoreaudio worked on tiger, now i am using the latest mtcoreaudio on
leopard and having a problem.
after having a problem recording yielding loud buzzing, i decided to
not use mtcoreaudio as a framework. i modified the imports and
included the files directly in my project. now, i get a failure
registering my output device.
is there something wrong in my setup?
i am trying to do a simple record and then playback:
- (void) setDeviceOpen:(BOOL)state
{
NSLog(@"setDeviceOpen:");
[receiveQueue release];
receiveQueue = nil;
if (state)
{
[inputDevice setDevicePaused:YES]; // lock out IO cycles while we
change a resource they use
[outputDevice setDevicePaused:YES];
[self allocNewConverter];
[outputDevice setDevicePaused:NO];
[inputDevice setDevicePaused:NO];
if ( ! ( [outputDevice deviceStart] && [inputDevice deviceStart] ))
{
NSLog(@"Device was unable to start.");
[self setDeviceOpen:NO];
return;
} else {
NSLog(@"Devices were able to start.");
receiveQueue = [[NSMutableArray alloc] initWithCapacity:16];
}
}
else
{
NSLog(@"Stopping devices.");
[inputDevice deviceStop];
[outputDevice deviceStop];
}
deviceOpen = state;
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden