View Full Version : Recording audio with TBASS

18-02-2015, 01:29
I'd like to record the audio generated by my TBASS program. I found a reference to recording in the Help Manual, but it doesn't specify the syntax. Is this supported in thinBasic, and if so, what is the syntax?

18-02-2015, 08:15
Yes, in help is mentioned "recording" is some multipurpose TBASS functions but I do not think TBASS module has all the needed recording functions implemented.

BASS library (from which TBASS is derived) had some specific functions implemented but I've never implemented them in TBASS.
For example: http://www.un4seen.com/doc/#bass/BASS_RecordStart.html

If really interested I can have a look and see what I can do in future TBASS versions.
Give us a little more info of what you would like to do.


19-02-2015, 08:15
BASS_RecordStart looks perfect. I'd love to see something like that in TBASS, Eros.

Basically I've written a media player that plays 3 audio files simultaneously and randomly alters the mix in amusing ways. I'd like to record that output to a standard 16-bit 44.1KHz WAV file.

I know I could probably figure out how to, say, pipe the audio to ffmpeg, but it would be so elegant to handle it natively via TBASS with a few lines of code.

Thanks for looking into this.