Lines Matching refs:err
433 OSStatus err;
447 err = AudioConverterNew(inFormat, outFormat, &converter);
449 if (err || converter == NULL) {
450 OS_ERROR1(err, "Resampler::Init (AudioConverterNew), converter=%p", converter);
459 err = AudioConverterGetProperty(converter, kAudioConverterPrimeInfo, &sizePrime, &primeInfo);
460 if (err) {
461 OS_ERROR0(err, "Resampler::Init (get kAudioConverterPrimeInfo)");
508 OSStatus err;
521 err = AudioConverterFillComplexBuffer(converter, ConverterInputProc, &data, &packets, &abl, NULL);
532 } while (err == noErr);
534 if (err != kResamplerEndOfInputData) {
536 OS_ERROR0(err, "Resampler::Process (AudioConverterFillComplexBuffer)");
630 OSStatus err;
642 err = OpenAComponent(comp, &unit);
644 if (err) {
645 OS_ERROR0(err, "CreateOutputUnit:OpenAComponent");
651 err = AudioUnitSetProperty(unit, kAudioOutputUnitProperty_EnableIO, kAudioUnitScope_Output,
653 if (err) {
654 OS_ERROR0(err, "SetProperty (output EnableIO)");
657 err = AudioUnitSetProperty(unit, kAudioOutputUnitProperty_EnableIO, kAudioUnitScope_Input,
659 if (err) {
660 OS_ERROR0(err, "SetProperty (input EnableIO)");
674 err = AudioUnitSetProperty(unit, kAudioOutputUnitProperty_CurrentDevice, kAudioUnitScope_Global,
676 if (err) {
677 OS_ERROR0(err, "SetProperty (CurrentDevice)");
746 OSStatus err = AudioUnitRender(device->audioUnit, ioActionFlags, inTimeStamp, inBusNumber, inNumberFrames, &abl);
747 if (err) {
748 OS_ERROR0(err, "<<InputCallback: AudioUnitRender");
809 OSStatus err = GetAudioObjectProperty(audioDeviceID, kAudioUnitScope_Global, kAudioDevicePropertyDeviceName, 256, &name, 0);
810 if (err != noErr) {
811 OS_ERROR1(err, " audioDeviceID=0x%x, name is N/A:", (int)audioDeviceID);
827 OSStatus err = noErr;
857 err = AudioUnitSetProperty(device->audioUnit, kAudioUnitProperty_StreamFormat, scope, element, &device->asbd, sizeof(device->asbd));
858 if (err) {
859 OS_ERROR0(err, "<<DAUDIO_Open set StreamFormat");
868 err = AudioUnitSetProperty(device->audioUnit,
873 if (err) {
874 OS_ERROR0(err, "<<DAUDIO_Open set RenderCallback");
879 err = AudioUnitInitialize(device->audioUnit);
880 if (err) {
881 OS_ERROR0(err, "<<DAUDIO_Open UnitInitialize");
890 OSStatus err;
893 err = AudioUnitGetProperty(device->audioUnit, kAudioDevicePropertyBufferFrameSize, kAudioUnitScope_Global,
895 if (err) {
896 OS_ERROR0(err, "<<DAUDIO_Open (TargetDataLine)GetBufferSize\n");
933 OSStatus err = AudioOutputUnitStart(device->audioUnit);
935 if (err != noErr) {
936 OS_ERROR0(err, "DAUDIO_Start");
939 return err == noErr ? TRUE : FALSE;
946 OSStatus err = AudioOutputUnitStop(device->audioUnit);
948 return err == noErr ? TRUE : FALSE;