Author Topic: Skip silence  (Read 186 times)

AlexU

  • Guest
Skip silence
« on: 15 Dec '24 - 14:35 »
Hello,

Could you suggest the best way to skip silence during playback?
I mean not only silence at the start of the file but all silence during the file.

Thank you.

Ian @ un4seen

  • Administrator
  • Posts: 26223
Re: Skip silence
« Reply #1 on: 16 Dec '24 - 16:32 »
I think you would probably need to use a decoding channel (with BASS_STREAM_DECODE set) feeding a custom stream for this: the custom stream's STREAMPROC function would fetch data from the decoder via BASS_ChannelGetData, then check the data for silence and exclude it from the returned data.

AlexU

  • Guest
Re: Skip silence
« Reply #2 on: 17 Dec '24 - 10:04 »
Thank you!