Re: Need help with AudioBufferList
Re: Need help with AudioBufferList
- Subject: Re: Need help with AudioBufferList
- From: Bill Stewart <email@hidden>
- Date: Thu, 24 Jan 2002 17:11:28 -0800
on 22/1/02 10:39 PM, Rolley wrote:
>
Hi,
>
>
I am trying to code an audio Cocoa/Java application.
>
What I try to do is copy an Object. And it seems .clone() is protected and
>
I can't use it. Unless you have a clue ?
>
>
Since the Object AudioBufferList
>
http://qtj.apple.com/pub/audio/docs/com/apple/audio/util/AudioBufferList.html
>
has no constructor (!!!) I have to do something like :
>
>
AudioBufferList result = (AudioBufferList) new CAMemoryObject
>
( _A_SIZE_IN_BYTES_, true);
>
>
So let's say i want my AudioBufferList to have 3 AudioBuffer I would like
>
a function to get the size in bytes of an AudioBuffer, so I could set
>
_A_SIZE_IN_BYTES_ to 3*sizeof(AudioBuffer).
>
>
I am puzzled. Does someone has an idea
>
1/ How come this object has no constructor
Because an AudioBufferList is generally built for you by the HAL, and its
the AudioBuffer objects that are the real meat of the problem... None of the
higher APIs deal with these lists at the moment.
I can always add this constructor for you - but it would help for me to know
why you want to build these yourself.
>
2/ How to get me out of this mess !!
I think you'd need something from me... You won't be able to cast this in
any way.
Bill
>
>
Thx,
>
Rolley
>
_______________________________________________
>
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.
mailto:email@hidden
tel: +1 408 974 4056
__________________________________________________________________________
"We'll talk about it later...."
"When?"
"In a future life when we're both cats"
__________________________________________________________________________