Author Topic: Ask for real-time playback questions  (Read 522 times)

one808

  • Posts: 10
Ask for real-time playback questions
« on: 25 May '23 - 14:34 »
If there is a project, use audio_CB (data, len) callback outputs audio frame data. I want to use BASS to play "data" in real time. What is the process?

Ian @ un4seen

  • Administrator
  • Posts: 26021
Re: Ask for real-time playback questions
« Reply #1 on: 25 May '23 - 16:10 »
Do you want to play realtime generated sample data via a callback? If so, BASS_StreamCreate and a STREAMPROC is what you need. You may also want to disable playback buffering via the stream's BASS_ATTRIB_BUFFER setting to minimize latency. Please see the documentation for details on these things.