• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using AudioDeviceRead?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using AudioDeviceRead?


  • Subject: Re: Using AudioDeviceRead?
  • From: Dirk Musfeldt <email@hidden>
  • Date: Wed, 19 Feb 2003 13:21:32 +0100

Hi Jeff,

> Have you started the device you are reading from?

I double-checked the IDs used with the various AudeDeviceXXX calls and they
matched.

> Is the address of the AudioBufferList you are passing to
> AudioDeviceRead() the same as the one that you registered with
> kAudioDevicePropertyRegisterBufferList?

I double-checked the addresses of the AudioBufferList and they matched, too.

> Does the device you are reading from really have inputs?

I checked that.

> Is the time stamp valid and for a time far enough in the past?

Maybe that could be the error. I start with

AudioDeviceGetCurrentTime()
- AudioDeviceGetProperty (... kAudioDevicePropertySafetyOffset ...)
- totalReadBufferLength / frameSize

Does that make sense?



With kind regards

Dirk Musfeldt
Meilenstein Mac OS Software

Neue Strasse 5
D-31582 Nienburg
Germany
Tel: +49 (0) 5021 91 24 44
Fax: +49 (0) 5021 91 24 45
<http://www.meilenstein.de/>


> Von: Jeff Moore <email@hidden>
> Datum: Tue, 18 Feb 2003 11:54:07 -0800
> An: email@hidden
> Betreff: Re: Using AudioDeviceRead?
>
> Have you started the device you are reading from?
>
> Is the address of the AudioBufferList you are passing to
> AudioDeviceRead() the same as the one that you registered with
> kAudioDevicePropertyRegisterBufferList?
>
> Is the time stamp valid and for a time far enough in the past?
>
> Does the device you are reading from really have inputs?
>
> These are the sorts of things that can lead to an
> kAudioHardwareIllegalOperationError when calling AudioDeviceRead().
>
> On Tuesday, February 18, 2003, at 07:04 AM, Dirk Musfeldt wrote:
>
>> Hi all,
>>
>> I'm trying to do some kind of soft play through with the default input
>> device. I try to call AudioDeviceRead in the callback.
>>
>> This is roughly what I do:
>>
>> AudioDeviceStart();
>>
>> AudioDeviceGetProperty( ..., kAudioDevicePropertyStreamConfiguration,
>> ... );
>>
>> AllocBuffer();
>>
>> AudioDeviceSetProperty (... kAudioDevicePropertyRegisterBufferList
>> ...);
>>
>>
>> I set the AudioUnitInputCallback with
>> kAudioUnitProperty_SetInputCallback.
>>
>> Within my callback I do
>>
>> AudioDeviceRead(mDevice, &stamp, mReadBuffer);
>>
>> but that constantly returns kAudioHardwareIllegalOperationError.
>>
>> Where is the error? How do I have to prepare the audio device?
>>
>>
>>
>> With kind regards
>>
>> Dirk Musfeldt
>> Meilenstein Mac OS Software
>>
>> Neue Strasse 5
>> D-31582 Nienburg
>> Germany
>> Tel: +49 (0) 5021 91 24 44
>> Fax: +49 (0) 5021 91 24 45
>> <http://www.meilenstein.de/>
>> _______________________________________________
>> coreaudio-api mailing list | email@hidden
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/coreaudio-api
>> Do not post admin requests to the list. They will be ignored.
>>
>>
>
> --
>
> Jeff Moore
> Core Audio
> Apple
> _______________________________________________
> coreaudio-api mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/coreaudio-api
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Using AudioDeviceRead?
      • From: Jeff Moore <email@hidden>
References: 
 >Re: Using AudioDeviceRead? (From: Jeff Moore <email@hidden>)

  • Prev by Date: Re: Midi Interface
  • Next by Date: AU diagnostics?
  • Previous by thread: Re: Using AudioDeviceRead?
  • Next by thread: Re: Using AudioDeviceRead?
  • Index(es):
    • Date
    • Thread