Re: Fast Loading of Large Mp3's (100.000 KB)

new topic     » goto parent     » topic index » view thread      » older message » newer message

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.
> >
> >
>
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu