Sign in to follow this  
Followers 0
rony2006

BASS UDF - get started

1 post in this topic

Hello,

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.
_BASS_STARTUP ("BASS.dll")

;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")
    Exit
EndIf

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  
Followers 0