BASS.DLL - source = mic or speakers ? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Guess

BASS.DLL - source = mic or speakers ?

19 Jan 2017, 08:46

Hi all,

I have a question I've been meaning to ask for a while..
Could bass.dll be used to react to the audio playing on speakers or to the mic instead of an audio/file or stream?
It would vastly improve it's usefulness of it for me as I'd love to use it to analyze the audio of those sources and react to it.

Many thanks in advance

Any alternatives are welcome too!
Guess

Re: BASS.DLL - source = mic or speakers ?

20 Jan 2017, 07:55

I'm gonna try that but I doubt I'm going to figure it out myself as i lack some understanding of that
Amonst others noname and qwerty12 provided useful info and examples regarding BASS but adding another type of input really baffles me

https://autohotkey.com/boards/viewtopic ... 84#p101484
https://autohotkey.com/boards/viewtopic ... 632#p81632
https://autohotkey.com/boards/viewtopic ... 592#p91592
https://autohotkey.com/boards/viewtopic ... 124#p86124

Really would appreciate some assistance with this
User avatar
nnnik
Posts: 4500
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: BASS.DLL - source = mic or speakers ?

20 Jan 2017, 08:24

Yes it can.
First you need to initialize a Recording using the RecordInit function.
The RecordInit Function takes a device as input. They are simply numbered e.g. 1 is device 1, 2 is device 2....
With the RecordGetDeviceCount Function you can the number of devices.
You can get additional Information about the device by calling RecordGetDeviceInfo.
And lastly you can use RecordStart to start recording.
RecordStart will call a function (that you specified when you called RecordStart) every now and then with the latest data it recorded.
Recommends AHK Studio
Guess

Re: BASS.DLL - source = mic or speakers ?

20 Jan 2017, 08:38

Thank you for your input nnnik !

My goal is to have bass.dll react to the audio you hear meaning i could have an EQ for all audio, not only files/streams.
I'm not sure if recordings are still the way to go then or are they?
User avatar
nnnik
Posts: 4500
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: BASS.DLL - source = mic or speakers ?  Topic is solved

20 Jan 2017, 09:06

There is a master device named -1 it could be exactly what you search for.
Recommends AHK Studio
Guess

Re: BASS.DLL - source = mic or speakers ?

23 Jan 2017, 03:54

Thanks, I see that device is used on init but i'm not quite there yet to put that info to good use.
I'll need some time to get the recording working in AHK since those calls aren't in the library.

If I manage to get it to work I will update this topic.

Also found like 25 topics to read on un4seen to see if it can be done without buffering (avoiding delays / making it live).
(doesn't need to play sound really - just use the master device and analyze the audio for FFTdata)

Oh by the way, if anyone has the FULL Bass AHK Library (with addons etc) feel free to share them.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Descolada, Google [Bot] and 249 guests