Streaming music via Server?

Blitz3D Forums/Blitz3D Programming/Streaming music via Server?

Guy Fawkes(Posted 2012) [#1]
Hi all, I have been converting a server & client streaming code from BlitzPlus to Blitzbasic, that streams music to a client via TCP, but ive run into a couple problems... I can't get it to PLAY the music on the client side, even though I checked the packet data being sent, and it returned the correct file location (on my C drive), BUT STILL wont play :/ Also, there's a couple timer codes in there that i commented out, that i dont quite understand how to convert to blitzbasic.


If you guys could help me, I would GREATLY appreciate it! :) I wanna add this to the code archives for everybody to use! :)


Also, when my friend connects to it, for some reason, the server on MY end crashes o.o It seems to do this when more than 1 person is connected to it at once.


Here is where I found it originally:


http://www.blitzbasic.com/codearcs/codearcs.php?code=2106


BlitzPlus:


StreamServer.b+:






StreamClient.b+:





Blitzbasic


Without further adieu, here is/are the source(s):


StreamServer.bb:




StreamClient.bb:




You will also need the WinBlitz3D 1.1 DECLs file & DLL file, I will provide it, but if Kev doesn't want it on here, then I will have to remove it :)


Credit goes to: Kev for WinBlitz3D - the BEST damn GUI code OUT there BY FAR! :) Thanks Kev, for your contribution! :)


And now without further adieu, here is the WinBlitz3D DECLs file:


Blitz3D_GUI_DLL.DECLS:




Please note: I have removed the browser functions from the WinBlitz3D DECLS file, as I am not sure whether or not it is legal to use in commercial projects :)


Here is a link to my whole project, which INCLUDES the DECLS file, the WinBlitz3D DLL file, my client / server sources, and an EXE version of my client / server sources:


http://www.mediafire.com/?n563cbmvciuhe16


Thank you to all who help! :)

Last edited 2012