> Is your code C++? If so, that’s the error you’d get if one of your parameters 
> were the wrong type.

Ahhh.. wow.. ok, yeah my buffers are of type int16_t...  How can I
use this vDSP_vsmul with that type?  If I cast as float:

  vDSP_vsmul((float *)buffer, 1, &gain, (float *)buffer, 1, frames);

It ends up sounding like trash...

Really, I just am trying to do:

  for (int i = 0; i < frames; i++) {
    buffer[i] *= gain;
  }

Is there a way to do this with vDSP_vsmul?

Patrick J. Collins
http://collinatorstudios.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to