📄 internet_music_bass.bas
字号:
' BASS_CHANNELINFO types
Global Const BASS_CTYPE_SAMPLE = 1
Global Const BASS_CTYPE_RECORD = 2
Global Const BASS_CTYPE_STREAM = &H10000
Global Const BASS_CTYPE_STREAM_OGG = &H10002
Global Const BASS_CTYPE_STREAM_MP1 = &H10003
Global Const BASS_CTYPE_STREAM_MP2 = &H10004
Global Const BASS_CTYPE_STREAM_MP3 = &H10005
Global Const BASS_CTYPE_STREAM_AIFF = &H10006
Global Const BASS_CTYPE_STREAM_WAV = &H40000 ' WAVE flag, LOWORD=codec
Global Const BASS_CTYPE_STREAM_WAV_PCM = &H50001
Global Const BASS_CTYPE_STREAM_WAV_FLOAT = &H50003
Global Const BASS_CTYPE_MUSIC_MOD = &H20000
Global Const BASS_CTYPE_MUSIC_MTM = &H20001
Global Const BASS_CTYPE_MUSIC_S3M = &H20002
Global Const BASS_CTYPE_MUSIC_XM = &H20003
Global Const BASS_CTYPE_MUSIC_IT = &H20004
Global Const BASS_CTYPE_MUSIC_MO3 = &H100 ' MO3 flag
Type BASS_PLUGINFORM
ctype As Long ' channel type
name As Long ' format description
exts As Long ' file extension filter (*.ext1;*.ext2;etc...)
End Type
Type BASS_PLUGININFO
version As Long ' version (same form as BASS_GetVersion)
formatc As Long ' number of formats
formats As Long ' the array of formats
End Type
'********************************************************
'* 3D vector (for 3D positions/velocities/orientations) *
'********************************************************
Type BASS_3DVECTOR
X As Single ' +=right, -=left
Y As Single ' +=up, -=down
z As Single ' +=front, -=behind
End Type
' DX8 effect types, use with BASS_ChannelSetFX
Global Const BASS_FX_CHORUS = 0 ' GUID_DSFX_STANDARD_CHORUS
Global Const BASS_FX_COMPRESSOR = 1 ' GUID_DSFX_STANDARD_COMPRESSOR
Global Const BASS_FX_DISTORTION = 2 ' GUID_DSFX_STANDARD_DISTORTION
Global Const BASS_FX_ECHO = 3 ' GUID_DSFX_STANDARD_ECHO
Global Const BASS_FX_FLANGER = 4 ' GUID_DSFX_STANDARD_FLANGER
Global Const BASS_FX_GARGLE = 5 ' GUID_DSFX_STANDARD_GARGLE
Global Const BASS_FX_I3DL2REVERB = 6 ' GUID_DSFX_STANDARD_I3DL2REVERB
Global Const BASS_FX_PARAMEQ = 7 ' GUID_DSFX_STANDARD_PARAMEQ
Global Const BASS_FX_REVERB = 8 ' GUID_DSFX_WAVES_REVERB
Type BASS_FXCHORUS ' DSFXChorus
fWetDryMix As Single
fDepth As Single
fFeedback As Single
fFrequency As Single
lWaveform As Long ' 0=triangle, 1=sine
fDelay As Single
lPhase As Long ' BASS_FX_PHASE_xxx
End Type
Type BASS_FXCOMPRESSOR ' DSFXCompressor
fGain As Single
fAttack As Single
fRelease As Single
fThreshold As Single
fRatio As Single
fPredelay As Single
End Type
Type BASS_FXDISTORTION ' DSFXDistortion
fGain As Single
fEdge As Single
fPostEQCenterFrequency As Single
fPostEQBandwidth As Single
fPreLowpassCutoff As Single
End Type
Type BASS_FXECHO ' DSFXEcho
fWetDryMix As Single
fFeedback As Single
fLeftDelay As Single
fRightDelay As Single
lPanDelay As Long
End Type
Type BASS_FXFLANGER ' DSFXFlanger
fWetDryMix As Single
fDepth As Single
fFeedback As Single
fFrequency As Single
lWaveform As Long ' 0=triangle, 1=sine
fDelay As Single
lPhase As Long ' BASS_FX_PHASE_xxx
End Type
Type BASS_FXGARGLE ' DSFXGargle
dwRateHz As Long ' Rate of modulation in hz
dwWaveShape As Long ' 0=triangle, 1=square
End Type
Type BASS_FXI3DL2REVERB ' DSFXI3DL2Reverb
lRoom As Long ' [-10000, 0] default: -1000 mB
lRoomHF As Long ' [-10000, 0] default: 0 mB
flRoomRolloffFactor As Single ' [0.0, 10.0] default: 0.0
flDecayTime As Single ' [0.1, 20.0] default: 1.49s
flDecayHFRatio As Single ' [0.1, 2.0] default: 0.83
lReflections As Long ' [-10000, 1000] default: -2602 mB
flReflectionsDelay As Single ' [0.0, 0.3] default: 0.007 s
lReverb As Long ' [-10000, 2000] default: 200 mB
flReverbDelay As Single ' [0.0, 0.1] default: 0.011 s
flDiffusion As Single ' [0.0, 100.0] default: 100.0 %
flDensity As Single ' [0.0, 100.0] default: 100.0 %
flHFReference As Single ' [20.0, 20000.0] default: 5000.0 Hz
End Type
Type BASS_FXPARAMEQ ' DSFXParamEq
fCenter As Single
fBandwidth As Single
fGain As Single
End Type
Type BASS_FXREVERB ' DSFXWavesReverb
fInGain As Single ' [-96.0,0.0] default: 0.0 dB
fReverbMix As Single ' [-96.0,0.0] default: 0.0 db
fReverbTime As Single ' [0.001,3000.0] default: 1000.0 ms
fHighFreqRTRatio As Single ' [0.001,0.999] default: 0.001
End Type
Global Const BASS_FX_PHASE_NEG_180 = 0
Global Const BASS_FX_PHASE_NEG_90 = 1
Global Const BASS_FX_PHASE_ZERO = 2
Global Const BASS_FX_PHASE_90 = 3
Global Const BASS_FX_PHASE_180 = 4
Type GUID ' used with BASS_Init - use VarPtr(guid) in clsid parameter
Data1 As Long
Data2 As Integer
Data3 As Integer
Data4(7) As Byte
End Type
Declare Function BASS_SetConfig Lib "bass.dll" (ByVal opt As Long, ByVal value As Long) As Long
Declare Function BASS_GetConfig Lib "bass.dll" (ByVal opt As Long) As Long
Declare Function BASS_GetVersion Lib "bass.dll" () As Long
Declare Function BASS_GetDeviceDescription Lib "bass.dll" (ByVal device As Long) As Long
Declare Function BASS_ErrorGetCode Lib "bass.dll" () As Long
Declare Function BASS_Init Lib "bass.dll" (ByVal device As Long, ByVal freq As Long, ByVal Flags As Long, ByVal win As Long, ByVal clsid As Long) As Long
Declare Function BASS_SetDevice Lib "bass.dll" (ByVal device As Long) As Long
Declare Function BASS_GetDevice Lib "bass.dll" () As Long
Declare Function BASS_Free Lib "bass.dll" () As Long
Declare Function BASS_GetDSoundObject Lib "bass.dll" (ByVal object As Long) As Long
Declare Function BASS_GetInfo Lib "bass.dll" (ByRef info As BASS_INFO) As Long
Declare Function BASS_Update Lib "bass.dll" () As Long
Declare Function BASS_GetCPU Lib "bass.dll" () As Single
Declare Function BASS_Start Lib "bass.dll" () As Long
Declare Function BASS_Stop Lib "bass.dll" () As Long
Declare Function BASS_Pause Lib "bass.dll" () As Long
Declare Function BASS_SetVolume Lib "bass.dll" (ByVal volume As Long) As Long
Declare Function BASS_GetVolume Lib "bass.dll" () As Long
Declare Function BASS_PluginLoad Lib "bass.dll" (ByVal filename As String, ByVal Flags As Long) As Long
Declare Function BASS_PluginFree Lib "bass.dll" (ByVal HANDLE As Long) As Long
Private Declare Function BASS_PluginGetInfo_ Lib "bass.dll" Alias "BASS_PluginGetInfo" (ByVal HANDLE As Long) As Long
Declare Function BASS_Set3DFactors Lib "bass.dll" (ByVal distf As Single, ByVal rollf As Single, ByVal doppf As Single) As Long
Declare Function BASS_Get3DFactors Lib "bass.dll" (ByRef distf As Single, ByRef rollf As Single, ByRef doppf As Single) As Long
Declare Function BASS_Set3DPosition Lib "bass.dll" (ByRef pos As Any, ByRef vel As Any, ByRef front As Any, ByRef Top As Any) As Long
Declare Function BASS_Get3DPosition Lib "bass.dll" (ByRef pos As Any, ByRef vel As Any, ByRef front As Any, ByRef Top As Any) As Long
Declare Function BASS_Apply3D Lib "bass.dll" () As Long
Declare Function BASS_SetEAXParameters Lib "bass.dll" (ByVal env As Long, ByVal Vol As Single, ByVal decay As Single, ByVal damp As Single) As Long
Declare Function BASS_GetEAXParameters Lib "bass.dll" (ByRef env As Long, ByRef Vol As Single, ByRef decay As Single, ByRef damp As Single) As Long
Declare Function BASS_MusicLoad Lib "bass.dll" (ByVal mem As Long, ByVal f As Any, ByVal offset As Long, ByVal length As Long, ByVal Flags As Long, ByVal freq As Long) As Long
Declare Function BASS_MusicFree Lib "bass.dll" (ByVal HANDLE As Long) As Long
Declare Function BASS_MusicSetAttribute Lib "bass.dll" (ByVal HANDLE As Long, ByVal attrib As Long, ByVal value As Long) As Long
Declare Function BASS_MusicGetAttribute Lib "bass.dll" (ByVal HANDLE As Long, ByVal attrib As Long) As Long
Declare Function BASS_MusicGetOrders Lib "bass.dll" (ByVal HANDLE As Long) As Long
Declare Function BASS_MusicGetOrderPosition Lib "bass.dll" (ByVal HANDLE As Long) As Long
Declare Function BASS_SampleLoad Lib "bass.dll" (ByVal mem As Long, ByVal f As Any, ByVal offset As Long, ByVal length As Long, ByVal max As Long, ByVal Flags As Long) As Long
Declare Function BASS_SampleCreate Lib "bass.dll" (ByVal length As Long, ByVal freq As Long, ByVal chans As Long, ByVal max As Long, ByVal Flags As Long) As Long
Declare Function BASS_SampleCreateDone Lib "bass.dll" () As Long
Declare Function BASS_SampleFree Lib "bass.dll" (ByVal HANDLE As Long) As Long
Declare Function BASS_SampleGetInfo Lib "bass.dll" (ByVal HANDLE As Long, ByRef info As BASS_SAMPLE) As Long
Declare Function BASS_SampleSetInfo Lib "bass.dll" (ByVal HANDLE As Long, ByRef info As BASS_SAMPLE) As Long
Declare Function BASS_SampleGetChannel Lib "bass.dll" (ByVal HANDLE As Long, ByVal onlynew As Long) As Long
Declare Function BASS_SampleStop Lib "bass.dll" (ByVal HANDLE As Long) As Long
Declare Function BASS_StreamCreate Lib "bass.dll" (ByVal freq As Long, ByVal chans As Long, ByVal Flags As Long, ByVal proc As Long, ByVal user As Long) As Long
Declare Function BASS_StreamCreateFile Lib "bass.dll" (ByVal mem As Long, ByVal f As Any, ByVal offset As Long, ByVal length As Long, ByVal Flags As Long) As Long
Declare Function BASS_StreamCreateURL Lib "bass.dll" (ByVal URL As String, ByVal offset As Long, ByVal Flags As Long, ByVal proc As Long, ByVal user As Long) As Long
Declare Function BASS_StreamCreateFileUser Lib "bass.dll" (ByVal buffered As Long, ByVal Flags As Long, ByVal proc As Long, ByVal user As Long) As Long
Declare Function BASS_StreamFree Lib "bass.dll" (ByVal HANDLE As Long) As Long
Declare Function BASS_StreamGetFilePosition Lib "bass.dll" (ByVal HANDLE As Long, ByVal mode As Long) As Long
Declare Function BASS_RecordGetDeviceDescription Lib "bass.dll" (ByVal device As Long) As Long
Declare Function BASS_RecordInit Lib "bass.dll" (ByVal device As Long) As Long
Declare Function BASS_RecordSetDevice Lib "bass.dll" (ByVal device As Long) As Long
Declare Function BASS_RecordGetDevice Lib "bass.dll" () As Long
Declare Function BASS_RecordFree Lib "bass.dll" () As Long
Declare Function BASS_RecordGetInfo Lib "bass.dll" (ByRef info As BASS_RECORDINFO) As Long
Declare Function BASS_RecordGetInputName Lib "bass.dll" (ByVal inputn As Long) As Long
Declare Function BASS_RecordSetInput Lib "bass.dll" (ByVal inputn As Long, ByVal setting As Long) As Long
Declare Function BASS_RecordGetInput Lib "bass.dll" (ByVal inputn As Long) As Long
Declare Function BASS_RecordStart Lib "bass.dll" (ByVal freq As Long, ByVal chans As Long, ByVal Flags As Long, ByVal proc As Long, ByVal user As Long) As Long
Private Declare Function BASS_ChannelBytes2Seconds64 Lib "bass.dll" Alias "BASS_ChannelBytes2Seconds" (ByVal HANDLE As Long, ByVal pos As Long, ByVal poshigh As Long) As Single
Declare Function BASS_ChannelSeconds2Bytes Lib "bass.dll" (ByVal HANDLE As Long, ByVal pos As Single) As Long
Declare Function BASS_ChannelGetDevice Lib "bass.dll" (ByVal HANDLE As Long) As Long
Declare Function BASS_ChannelSetDevice Lib "bass.dll" (ByVal HANDLE As Long, ByVal device As Long) As Long
Declare Function BASS_ChannelIsActive Lib "bass.dll" (ByVal HANDLE As Long) As Long
Declare Function BASS_ChannelGetInfo Lib "bass.dll" (ByVal HANDLE As Long, ByRef info As BASS_CHANNELINFO) As Long
Declare Function BASS_ChannelGetTags Lib "bass.dll" (ByVal HANDLE As Long, ByVal tags As Long) As Long
Declare Function BASS_ChannelSetFlags Lib "bass.dll" (ByVal HANDLE As Long, ByVal Flags As Long) As Long
Declare Function BASS_ChannelPreBuf Lib "bass.dll" (ByVal HANDLE As Long, ByVal length As Long) As Long
Declare Function BASS_ChannelPlay Lib "bass.dll" (ByVal HANDLE As Long, ByVal restart As Long) As Long
Declare Function BASS_ChannelStop Lib "bass.dll" (ByVal HANDLE As Long) As Long
Declare Function BASS_ChannelPause Lib "bass.dll" (ByVal HANDLE As Long) As Long
Declare Function BASS_ChannelSetAttributes Lib "bass.dll" (ByVal HANDLE As Long, ByVal freq As Long, ByVal volume As Long, ByVal Pan As Long) As Long
Declare Function BASS_ChannelGetAttributes Lib "bass.dll" (ByVal HANDLE As Long, ByRef freq As Long, ByRef volume As Long, ByRef Pan As Long) As Long
Declare Function BASS_ChannelSlideAttributes Lib "bass.dll" (ByVal HANDLE As Long, ByVal freq As Long, ByVal volume As Long, ByVal Pan As Long, ByVal time As Long) As Long
Declare Function BASS_ChannelIsSliding Lib "bass.dll" (ByVal HANDLE As Long) As Long
Declare Function BASS_ChannelSet3DAttributes Lib "bass.dll" (ByVal HANDLE As Long, ByVal mode As Long, ByVal min As Single, ByVal max As Single, ByVal iangle As Long, ByVal oangle As Long, ByVal outvol As Long) As Long
Declare Function BASS_ChannelGet3DAttributes Lib "bass.dll" (ByVal HANDLE As Long, ByRef mode As Long, ByRef min As Single, ByRef max As Single, ByRef iangle As Long, ByRef oangle As Long, ByRef outvol As Long) As Long
Declare Function BASS_ChannelSet3DPosition Lib "bass.dll" (ByVal HANDLE As Long, ByRef pos As Any, ByRef orient As Any, ByRef vel As Any) As Long
Declare Function BASS_ChannelGet3DPosition Lib "bass.dll" (ByVal HANDLE As Long, ByRef pos As Any, ByRef orient As Any, ByRef vel As Any) As Long
Declare Function BASS_ChannelGetLength Lib "bass.dll" (ByVal HANDLE As Long) As Long
Private Declare Function BASS_ChannelSetPosition64 Lib "bass.dll" Alias "BASS_ChannelSetPosition" (ByVal HANDLE As Long, ByVal pos As Long, ByVal poshigh As Long) As Long
Declare Function BASS_ChannelGetPosition Lib "bass.dll" (ByVal HANDLE As Long) As Long
Declare Function BASS_ChannelGetLevel Lib "bass.dll" (ByVal HANDLE As Long) As Long
Declare Function BASS_ChannelGetData Lib "bass.dll" (ByVal HANDLE As Long, ByRef Buffer As Any, ByVal length As Long) As Long
Private Declare Function BASS_ChannelSetSync64 Lib "bass.dll" Alias "BASS_ChannelSetSync" (ByVal HANDLE As Long, ByVal atype As Long, ByVal param As Long, ByVal paramhigh As Long, ByVal proc As Long, ByVal user As Long) As Long
Declare Function BASS_ChannelRemoveSync Lib "bass.dll" (ByVal HANDLE As Long, ByVal sync As Long) As Long
Declare Function BASS_ChannelSetDSP Lib "bass.dll" (ByVal HANDLE As Long, ByVal proc As Long, ByVal user As Long, ByVal priority As Long) As Long
Declare Function BASS_ChannelRemoveDSP Lib "bass.dll" (ByVal HANDLE As Long, ByVal dsp As Long) As Long
Declare Function BASS_ChannelSetEAXMix Lib "bass.dll" (ByVal HANDLE As Long, ByVal mix As Single) As Long
Declare Function BASS_ChannelGetEAXMix Lib "bass.dll" (ByVal HANDLE As Long, ByRef mix As Single) As Long
Declare Function BASS_ChannelSetLink Lib "bass.dll" (ByVal HANDLE As Long, ByVal chan As Long) As Long
Declare Function BASS_ChannelRemoveLink Lib "bass.dll" (ByVal HANDLE As Long, ByVal chan As Long) As Long
Declare Function BASS_ChannelSetFX Lib "bass.dll" (ByVal HANDLE As Long, ByVal atype As Long, ByVal priority As Long) As Long
Declare Function BASS_ChannelRemoveFX Lib "bass.dll" (ByVal HANDLE As Long, ByVal fx As Long) As Long
Declare Function BASS_FXSetParameters Lib "bass.dll" (ByVal HANDLE As Long, ByRef par As Any) As Long
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -