1. Fast Loading of Large Mp3's (100.000 KB)
- Posted by 10963508 at europeonline.com Aug 15, 2002
- 812 views
If I load very large mp3 files with bass library, size is about 0.1 MB, it takes about 15 seconds to load that file. I want it to load instantly like winamp does. Is there any possibility to load them fast with this library? I open file with BASS_StreamCreateFile ().
2. Re: Fast Loading of Large Mp3's (100.000 KB)
- Posted by Ron Tarrant <rtarrant at sympatico.ca> Aug 15, 2002
- 766 views
10963508 at europeonline.com wrote: > > > If I load very large mp3 files with bass library, size is about 0.1 MB, it > takes about 15 seconds to load that file. I want it to load instantly like > winamp does. Is there any possibility to load them > fast with this library? > I open file with BASS_StreamCreateFile (). I may be way off base here, but doesn't winamp handle mp3's as streams? With the load time you're talking about, it looks like your entire mp3 is being loaded into memory and that's not streaming, that's loading. What does the rest of your code look like? -Ron T.
3. Re: Fast Loading of Large Mp3's (100.000 KB)
- Posted by 10963508 at europeonline.com Aug 15, 2002
- 762 views
My code is like this: --- INITIALIZE BASS LIBRARY: procedure initialize_bass_library () --// Check that BASS 1.5 was loaded if BASS_GetVersion() != MakeLong(1, 5) then error ("BASS Version 1.5 was not Loaded, Incorrect BASS.DLL") end if --// Initialize digital sound - default device, 44100hz, stereo, 16 bits, no syncs used if not(BASS_Init(-1, 44100, or_all ({BASS_DEVICE_LEAVEVOL}), getHandle(Main_window))) then error("Can't Initialize Digital Sound System") end if setScrollPos (Loudness_slider, BASS_GetVolume ()) end procedure --- PLAY FILE: Cur_stream = BASS_StreamCreateFile(0, entry [ENTRY_FILENAME], 0, 0, BASS_MP3_SETPOS) if Cur_stream = 0 then error ("Couldn't play file " & entry [ENTRY_FILENAME]) return end if if not(BASS_StreamPlay(Cur_stream, 0, BASS_SAMPLE_LOOP)) then error ("Can't play file " & entry [ENTRY_FILENAME]) return end if I'm making some sort of winamp clone, so I need to be able to seek to position in song. ----- Original Message ----- From: "Ron Tarrant" <rtarrant at sympatico.ca> To: "EUforum" <EUforum at topica.com> Sent: Thursday, August 15, 2002 11:01 AM Subject: Re: Fast Loading of Large Mp3's (100.000 KB) > > 10963508 at europeonline.com wrote: > > > > > > If I load very large mp3 files with bass library, size is about 0.1 MB, it > > takes about 15 seconds to load that file. I want it to load instantly like > > winamp does. Is there any possibility to load them > > fast with this library? > > I open file with BASS_StreamCreateFile (). > > I may be way off base here, but doesn't winamp handle mp3's as streams? > With the load time you're talking about, it looks like your entire mp3 > is being loaded into memory and that's not streaming, that's loading. > What does the rest of your code look like? > > -Ron T. > > > >
4. Re: Fast Loading of Large Mp3's (100.000 KB)
- Posted by Elliott Sales de Andrade <quantum_analyst at hotmail.com> Aug 15, 2002
- 832 views
>My code is like this: > > >--- INITIALIZE BASS LIBRARY: > >procedure initialize_bass_library () >--// Check that BASS 1.5 was loaded > if BASS_GetVersion() != MakeLong(1, 5) then > error ("BASS Version 1.5 was not Loaded, Incorrect BASS.DLL") > end if >--// Initialize digital sound - default device, 44100hz, stereo, 16 bits, >no >syncs used > if not(BASS_Init(-1, 44100, or_all ({BASS_DEVICE_LEAVEVOL}), > getHandle(Main_window))) then > error("Can't Initialize Digital Sound System") > end if > setScrollPos (Loudness_slider, BASS_GetVolume ()) >end procedure > > >--- PLAY FILE: > >Cur_stream = BASS_StreamCreateFile(0, entry [ENTRY_FILENAME], 0, 0, >BASS_MP3_SETPOS) >if Cur_stream = 0 then > error ("Couldn't play file " & entry [ENTRY_FILENAME]) > return >end if >if not(BASS_StreamPlay(Cur_stream, 0, BASS_SAMPLE_LOOP)) then > error ("Can't play file " & entry [ENTRY_FILENAME]) > return >end if > >I'm making some sort of winamp clone, so I need to be able to seek to >position in song. I can see that you're using BASS_MP3_SETPOS. This greatly slows down loading time as every frame must be read. Tone Skoda posted a message on the BASS forum, i see. Ian showed a little trick to make it loook like it's loading faster. You can view it over here: http://www.un4seen.com/music/YaBB.cgi?board=bass&action=display&num=1029391221 This will probably wrap over, so make sure you get the whole thing.
5. Re: Fast Loading of Large Mp3's (100.000 KB)
- Posted by pampeano at rocketmail.com Aug 15, 2002
- 779 views
--0-794368213-1029459855=:94729 Hi, Take a look at this include. I also made some routines to know the length of the track and the elapsed time, but i've them in a friend's house, when i get there i'll could send you if you want. Best Regards, Guillermo Bonvehi --- 10963508 at europeonline.com wrote: > > If I load very large mp3 files with bass library, size is about 0.1 > MB, it > takes about 15 seconds to load that file. I want it to load instantly > like > winamp does. Is there any possibility to load them > fast with this library? > I open file with BASS_StreamCreateFile (). Content-Type: application/octet-stream; name="bassw.ew"
6. Re: Fast Loading of Large Mp3's (100.000 KB)
- Posted by 10963508 at europeonline.com Aug 16, 2002
- 807 views
I solved it. It looks like you don't need BASS_MP3_SETPOS flag to seek to positions in songs at all. ----- Original Message ----- From: <10963508 at europeonline.com> To: "EUforum" <EUforum at topica.com> Subject: Re: Fast Loading of Large Mp3's (100.000 KB) > > My code is like this: > > > --- INITIALIZE BASS LIBRARY: > > procedure initialize_bass_library () > --// Check that BASS 1.5 was loaded > if BASS_GetVersion() != MakeLong(1, 5) then > error ("BASS Version 1.5 was not Loaded, Incorrect BASS.DLL") > end if > --// Initialize digital sound - default device, 44100hz, stereo, 16 bits, no > syncs used > if not(BASS_Init(-1, 44100, or_all ({BASS_DEVICE_LEAVEVOL}), > getHandle(Main_window))) then > error("Can't Initialize Digital Sound System") > end if > setScrollPos (Loudness_slider, BASS_GetVolume ()) > end procedure > > > --- PLAY FILE: > > Cur_stream = BASS_StreamCreateFile(0, entry [ENTRY_FILENAME], 0, 0, > BASS_MP3_SETPOS) > if Cur_stream = 0 then > error ("Couldn't play file " & entry [ENTRY_FILENAME]) > return > end if > if not(BASS_StreamPlay(Cur_stream, 0, BASS_SAMPLE_LOOP)) then > error ("Can't play file " & entry [ENTRY_FILENAME]) > return > end if > > I'm making some sort of winamp clone, so I need to be able to seek to > position in song. > > ----- Original Message ----- > From: "Ron Tarrant" <rtarrant at sympatico.ca> > To: "EUforum" <EUforum at topica.com> > Sent: Thursday, August 15, 2002 11:01 AM > Subject: Re: Fast Loading of Large Mp3's (100.000 KB) > > > > 10963508 at europeonline.com wrote: > > > > > > > > > If I load very large mp3 files with bass library, size is about 0.1 MB, > it > > > takes about 15 seconds to load that file. I want it to load instantly > like > > > winamp does. Is there any possibility to load them > > > fast with this library? > > > I open file with BASS_StreamCreateFile (). > > > > I may be way off base here, but doesn't winamp handle mp3's as streams? > > With the load time you're talking about, it looks like your entire mp3 > > is being loaded into memory and that's not streaming, that's loading. > > What does the rest of your code look like? > > > > -Ron T. > > > > > > >
7. Re: Fast Loading of Large Mp3's (100.000 KB)
- Posted by 10963508 at europeonline.com Aug 16, 2002
- 781 views
----- Original Message ----- From: "Elliott Sales de Andrade" > I can see that you're using BASS_MP3_SETPOS. This greatly slows down loading > time as every frame must be read. I just found out I dond't need to use BASS_MP3_SETPOS flag to seek. Bass documentatin isnt' so clear about this. > Tone Skoda posted a message on the BASS > forum, i see. That was me :) I just thought I would try there also.
8. Re: Fast Loading of Large Mp3's (100.000 KB)
- Posted by 10963508 at europeonline.com Aug 16, 2002
- 785 views
----- Original Message ----- From: <pampeano at rocketmail.com> To: "EUforum" <EUforum at topica.com> > Take a look at this include. I can't open your attachment. > I also made some routines to know the length of the track and the > elapsed time, but i've them in a friend's house, when i get there i'll > could send you if you want. I already have that, I also know how to get bitrate of song. I made some sort of Winamp clone, it only looks a little uglier that Winamp.
9. Re: Fast Loading of Large Mp3's (100.000 KB)
- Posted by Elliott Sales de Andrade <quantum_analyst at hotmail.com> Aug 16, 2002
- 785 views
> > Tone Skoda posted a message on the BASS > > forum, i see. > >That was me :) I just thought I would try there also. Just a guess. It was the only person i could think of named tskoda.