Results 1 to 2 of 2

Thread: buffer enqueue question

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Posts
    1

    buffer enqueue question

    Hi,

    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.

  2. #2
    Junior Member
    Join Date
    Mar 2012
    Posts
    9

    Re: buffer enqueue question

    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.

Similar Threads

  1. memory buffer question
    By t.verstraete in forum OpenCL
    Replies: 7
    Last Post: 03-21-2012, 06:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •