Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 6th October 2004, 23:26   #1
grahama
Senior Member
 
Join Date: Sep 2004
Location: Los Angeles
Posts: 223
Question Streaming wma/mp3 NSIS example

does anyone have an example of streaming audio [not a MOD] that streams an audio file [wma/mp3] from a remote server during installation ? I went to un4seen's BassMOD site and they have the dll for this....I am just too new to implement it into my NSIS app..yet

does anyone have any example code in NSIS on how to use this ?

many thanks
grahama is offline   Reply With Quote
Old 9th October 2004, 18:23   #2
grahama
Senior Member
 
Join Date: Sep 2004
Location: Los Angeles
Posts: 223
Hi...just keeping the post current

my NSIS installer downloads and then executes 12 meg Quicktime Installer. Many of the users are dialup...so I guess I am looking at about 30 minutes to download and install. Streaming an 8kbit audio file during this 'eternity' would drastically help matters as the client is a record company and would love a 'radio station-like' audio file to stream for their users...
grahama is offline   Reply With Quote
Old 9th October 2004, 19:10   #3
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,353
Send a message via ICQ to deguix
Use System plugin. There has been an old topic talking about this, but it had so many posts that some people get confused there. So I'm going to post the BASS header file here (with fixes). The zip file contains an example to play MP3 files. Additionally you need to have:

- BASS.dll - to use about all functions available in the header file.
- BASSCD.dll (not required)- to use some functions to play/rip CD music.
- BASSWMA.dll (not required)- to use some functions to play .wma files.
- (Recommended - not required) documentation of each component above to know how to use the codes correctly.

There is NO documentation, so you need to go inside the header file and understand it...
Attached Files
File Type: zip bass.zip (44.5 KB, 95 views)

My Wiki Pages

Working now on:
New projects. (language: any)
deguix is offline   Reply With Quote
Old 9th October 2004, 20:13   #4
grahama
Senior Member
 
Join Date: Sep 2004
Location: Los Angeles
Posts: 223
do I need a specific verison of bass.dll?
I downloaded version 2.0.0.23
grahama is offline   Reply With Quote
Old 9th October 2004, 21:35   #5
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,353
Send a message via ICQ to deguix
No, you can use it with any recent version of BASS.dll.

My Wiki Pages

Working now on:
New projects. (language: any)
deguix is offline   Reply With Quote
Old 10th October 2004, 02:02   #6
grahama
Senior Member
 
Join Date: Sep 2004
Location: Los Angeles
Posts: 223
I'll try it in Win2k as it did not seem to be working in XP....I am using Virtual PC so the problem could lie there.
The example in the folder is for a local file. I can easily code the streaming of a local file In my case, I need to stream a file from a server. Is there an example of this...
many thanks
grahama is offline   Reply With Quote
Old 10th October 2004, 13:33   #7
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,353
Send a message via ICQ to deguix
No, I don't have one. But I know the commands said on the documentation which makes it possible:

BASS_Init (Initializes an output device).
BASS_StreamCreateURL (Stream of MP3, MP2, MP1, OGG or WAV file on the internet).
BASS_StreamPreBuf (Pre-buffer initial sample data ready for playback of a stream).
BASS_StreamPlay (Plays a stream).

My Wiki Pages

Working now on:
New projects. (language: any)
deguix is offline   Reply With Quote
Old 10th October 2004, 21:53   #8
grahama
Senior Member
 
Join Date: Sep 2004
Location: Los Angeles
Posts: 223
great
I'll give it a whirl and upon success...I'll post the example to the list. I'm sure a lot of people have need of this kind of thing...keeping users entertained during a download/install

g
grahama is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump