Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: custom soundstream onGetData() quits being called after a few calls  (Read 605 times)

0 Members and 1 Guest are viewing this topic.

51423benam

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Hello,

I did a thread already about that, but the thread was inactive a few weeks, I got some additional info and I wanted to make a fresh restart. So: I am implementing a custom soundstream. The problem is that onGetData() only gets called 3 or 4 times, although I continue to provide data and I don't quit the stream anyhow. I noticed that sometimes the data (samples) I deliver in the last onGetData() call that happens before not making calls anymore, consists completely of the value 255. But that happens only like half of the runs. Here is my code: https://ufile.io/vvyuw (It's a codeblocks project, but you can see the code anyways). Do you know what could be the problem?

 

anything