title: Could someone provide Android Native's AAudio (Android O) example of the write function?
body: <p>Since Android O and AAudio is relatively new, there is not much documentation or examples out there, apart from the Android NDK API (which is not really as good as the Android SDK API), and the googlesamples example of AAudio. I have been looking at google's example, but there is this AAudioStream_write() function that I want to use but they didn't give any example of it.</p>
  
  <p>Have somebody used this write function before, and could give an example on how to use it with sinewave or file (ex. .wav)? Currently I have just created a stream, but I need the data to output sound. I have done this in the Java layer with AudioTrack, but it is not really the same as the native one.</p>