mIRC Home    About    Download    Register    News    Help

Print Thread
#96841 06/09/04 06:02 AM
Joined: Mar 2004
Posts: 540
A
Armada Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Just wondering if this sounds possible before I even try, If I wrote the socket to a binary file, and splayed it in the sockread and had it write to the binary file at -1 -1 or whatever is the begining

#96842 06/09/04 06:58 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Streams are a bit more technical than just capturing the information. Yes, you do have the information streaming, and you save it, but you wouldn't be able to play the file while you're writing to it. What you do is write to a different file, while you play one, then once it's played, delete it.

This may help you out a bit: http://www.fluffbucket.com/othettutorials/streaming/general.htm


-KingTomato
#96843 06/09/04 07:04 AM
Joined: Mar 2004
Posts: 540
A
Armada Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Hmm so would like If I built a buffer up on a tmp file and did a filesize check on it play that and just rotate between 2 different tmp files to splay. or am I reaching?

#96844 06/09/04 07:30 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
No, that's about right. But you also have to rmemeber players like winamp's SHOUTcast include headers every file change for the song title, and information. You need to be able to distinguish what is a header, and what is song content.


-KingTomato
#96845 06/09/04 07:38 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012


-KingTomato
#96846 06/09/04 08:37 AM
Joined: Mar 2004
Posts: 540
A
Armada Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Thanks Ill try to figure this crap out - Also thanks for the extra effort

#96847 07/09/04 02:01 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Quote:
...and just rotate between 2 different tmp files to splay

This would be a nice approach, but /splay can't manage seamless transitions because there is no option for pre-buffering of the queued file.

#96848 07/09/04 02:03 AM
Joined: Mar 2004
Posts: 540
A
Armada Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Damn


Link Copied to Clipboard