vDSP calling conventions
vDSP calling conventions
- Subject: vDSP calling conventions
- From: AJ <email@hidden>
- Date: Thu, 27 May 2004 13:40:41 -0700
I have a simple question that I would like answered and have not found
the answer in docs or mailing list.
I am interested in using the v*() functions in the vDSP library to do
audio signal mixing and am interested if the result address can be
identical to one of the input addresses ala:
// zero out mix buufer
bzero(mix_buf, n_samples);
// mix signals into mix buffer
while(!done) {
// fill in_buf with samples to be mixed
// and set done variable appropriately
...
// mix signal in to buffer
vadd(in_buf, 1, mix_buf, 1, mix_buf, 1, n_samples);
}
// normalize mix buffer
vsmul(mix_buf, 1, &normal_val, mix_buf, n_samples);
It requires fewer buffers if I can have the mix buffer be both an input
and result buffer.
I don't want any surprises and have learned lessons over time ala the
difference between functions like memcpy and memmove. Where (at least
on some systems) memcpy will produce bad results if arrays are
overlapping whereas memmove will not.
Thanks,
--aj
_______________________________________________
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.