View Single Post
Posts: 18 | Thanked: 94 times | Joined on Dec 2012
#17
Originally Posted by thp View Post
When the AudioOutput gets created (NewObjectV), it gives you a long handle, the sample rate int, the number of channels int, the bitrate int and the buffer size int in the variable argument list. You need to use these, and especially pass the handle that you get as first parameter to the mixing function as third parameter. Also, there's no need to calloc/memcpy/free the buffer, you can directly provide the stream pointer to the mixing function.
Thanks for help, I finally got it working

I started new fork at https://github.com/Art-O/apkenv and made that pull request for this one.

Also updated attachment on front page.

Next stop Fruit Ninja audio
 

The Following 7 Users Say Thank You to Art-O For This Useful Post: