Jump to content
Sign in to follow this  

BASS UDF - get started

Recommended Posts



I want to use bass udf for getting the frequency of the sound that is played on my computer.

I tried:

#include <Bass.au3>
#include <BassConstants.au3>
#include <GUIConstantsEx.au3>
Global $playing_state = -1
;Open Bass.DLL.  Required for all function calls.

;Initalize bass.  Required for most functions.
_BASS_Init (0, -1, 44100, 0, "")

;Check if bass iniated.  If not, we cannot continue.
If @error Then
    MsgBox(0, "Error", "Could not initialize audio")

global $test = _BASS_ChannelGetInfo(HCHANNEL)

Arraydisplay("fdsfsd", $test)

I don't know how to make the $Handle for _BASS_ChannelGetInfo.

The link for udf is: 

From what I saw, _BASS_ChannelGetInfo. returns an array where I can find the frequency.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this