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.