Jump to content

Read / Peek currently playing music stream


Recommended Posts

heya i have a program that uses BASS.au3 and BASS_SFX.au3

to create visualizations that correspond with the music you play through it

...

this is the order i call everything in

...

$Startup_BASS = _BASS_Startup(@SCRIPTDIR & "\RESOURCES\DLL\Bass.dll")

$init_BASS = _BASS_INIT($BASS_DEVICE_3D)

$start_up_ = _BASS_SFX_Startup(@SCRIPTDIR & "\RESOURCES\DLL\Bass_SFX.dll")

_BASS_Init($BASS_DEVICE_CPSPEAKERS)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

$MusicHandle = _BASS_StreamCreateFile(False, $file, 0, 0, 0);;;;; BASS MUSIC STREAM;;

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

$PICUTRE_VIZ = GUICTRLCREATEPIC(@SCRIPTDIR & "\RESOURCES\ICONS\music_icon.jpg", 8, 136, 785, 406)

GUICTRLSETSTATE($PICUTRE_VIZ, 16) ;16;show;32;hide

$VISUAL_WIN_HANDLE = GUICTRLGETHANDLE($PICUTRE_VIZ)

_BASS_SFX_Init(@SCRIPTDIR & "\RESOURCES\DLL\Bass_SFX.dll", $PICUTRE_VIZ, $MAINGUI)

$VIS_CURRENT = "Aorta.svp"

$VISUAL_HANDLE = _BASS_SFX_PluginCreate(@ScriptDir & "\RESOURCES\VISUALIZATIONS\" & $VIS_CURRENT, $VISUAL_WIN_HANDLE, 785, 406, 0)

_BASS_ChannelPlay($MusicHandle, 1)

_BASS_SFX_PLUGINSTART($VISUAL_HANDLE)

_BASS_SFX_PLUGINRENDER($VISUAL_HANDLE, $MusicHandle, _WINAPI_GETWINDOWDC($VISUAL_WIN_HANDLE))

so basically instead of playing the music through Bass i want to "peek" into a io stream of a currently playing file

... so insteead of this :

$MusicHandle = _BASS_StreamCreateFile(False, $file, 0, 0, 0);;;;; BASS MUSIC STREAM;;

i want

$MusicHandle = $HOW_to_intercept_currently_playing_music_stream

....

i know i didn't explain that very well ...

but thanx anyways for your time

...and i'd be glad to give you more information and explain a bit better

...and i searched high and low for this ... but if you know somewhere

i can find the answer please do let me know what to search for...

i just haven't tried to read io streams before ... so im kinda lost on that one lol

im not the person who usually asks for help ... im usually the one helping so who knows help me and maybe i can help you :D

Link to comment
Share on other sites

  • Moderators

Blessedone,

Take a look at this thread. It might help.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • Moderators

AdmiralAlkex,

I checked before I answered - of the 2 topics that were running, one was locked and the content of the other deleted. So I charitably decided this was a fresh start. :D

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

AdmiralAlkex,

I checked before I answered - of the 2 topics that were running, one was locked and the content of the other deleted. So I charitably decided this was a fresh start. :D

M23

This one has identical text to the two other ones. If you look at the time of edit on the first one you will se that he deleted the text from there ONLY to open a new thread.

I reported him hours ago, but obviously the mods don't care about some stupid spammer, so therefore, we (the users) need to be hard on him.

@Blessedone

I hate to say this again, but please stop the spamming. You are not funny, and I'm not gonna stop saying this until you start to act like a human, not a brain-dead spammer.

Hey you already have a topic on that, stop the spamming, PLEASE. Double-posting is never accepted, what you should have done is bumped the older topic, but ONLY if 24 or more hours have gone.You have been reported.

As mentioned, don't double post. Thread locked.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...