buffer enqueue question


I am developing an application based on Open SL-ES for android and i have a question about buffer queues.

As far as i could understand when i enqueue a sound buffer, Open SL-ES does not make a copy of the data. My question is: Does android implementation delete the sound buffer, after it is played, or i have to delete it myself?

Andrei Comandatu.

The buffer is owned by the application, and Enqueue merely saves a pointer to the data in the queue. After the callback indicating the buffer is complete, then the pointer is no longer in the queue and you are allowed to either free it or use that memory for another Enqueue.