Audio programming and tone synthesis [duplicate]
I am mostly a business programmer and I've not done anything in audio programming since the ZX Spectrum so I'm not sure how to even ask this question correctly.
I just need some pointers in the right direction with regards to writing (Android in this case, but it is really a general question) applications which deal with audio such as a Tone Matrix.
Are they based on generating lots of samples or are the tones generated on the fly?
Thanks
See the answer here: Playing an arbitrary tone with Android
Any mixture of both.
Interesting audio-related DSP discussions happen on the forums at http://www.kvraudio.com.
Android provides two ways to perform sound output.
One is using AudioTrack class: http://developer.android.com/reference/android/media/AudioTrack.html
It's method write, allowes to output PCM data. AudioTrack can be used in streaming and static modes.
Another way is to use Android Native Development Kit, and OpenSL ES.
精彩评论