Author Topic: Get Volume Level of the channel fed from WASAPI Loopback  (Read 104 times)

purenoise

  • Posts: 103
I want:
 - using bass lib get real-time volume levels of the WASAPI loopback.

So i implemented the solution that feeds WASAPI loopback to the BASS stream,
based on
Code: [Select]
http://www.un4seen.com/forum/?topic=16725.0and applied changes to have real-time volume levels, since i don't need
saving stream data, but not getting levels of the  channel/stream.

I know that BASS_ChannelGetLevel need channel be active/play state, but
can't figure it out, since i just need volume levels only, no sound is required.

Appreciate suggestions.

purenoise

  • Posts: 103
Progress:
 - getting volume from the WASAPI.

Ian @ un4seen

  • Administrator
  • Posts: 23640
BASS supports loopback recording itself, so you probably don't really need the BASSWASAPI add-on for this. You can use BASS_RecordStart and have your RECORDPROC callback function simply "return true" if you don't need the captured data, while using BASS_ChannelGetLevel(Ex) to get the level.

purenoise

  • Posts: 103
Great suggestion,
will try.
Thank you.