Author Topic: Audio mixing without playback  (Read 346 times)

Marcus Reinhart

  • Posts: 16
Audio mixing without playback
« on: 24 Apr '19 - 11:28 »
Hello,

I would like to mix several audio files together with the Bass.Mix AddOn and save them as an audio file without playing them. So read audio files and save the sum as an audio file. Is that possible with the Bass Framework?

Best regards
Marcus

Ian @ un4seen

  • Administrator
  • Posts: 22121
Re: Audio mixing without playback
« Reply #1 on: 24 Apr '19 - 12:29 »
Yes, that is possible. You would use the BASS_STREAM_DECODE flag when creating the mixer to make it a "decoding channel", and then repeatedly call BASS_ChannelGetData to process it until you reach the end. You can use the BASSenc add-on for the file writing part. Here's an example of doing that:

   www.un4seen.com/forum/?topic=16428