Author Topic: About BASS_StreamGetLength  (Read 2449 times)

Sashur

  • Posts: 13
About BASS_StreamGetLength
« on: 8 Feb '03 - 01:39 »
Hi!

 My problem:
  I'm downloading file (mp3) from internet and playing it at one time. How I can get real length of the song? BASS_StreamGetLength return (for example) 10 (but real length must be >10) until I recreate HStream. Suggestion to Ian: please implement function that rereads info from file.

Best Regards,
Milykh Alexander.

Chris

  • Posts: 1860
Re: About BASS_StreamGetLength
« Reply #1 on: 8 Feb '03 - 20:05 »
I think only possible after the stream is created..
Greets Chris
« Last Edit: 8 Feb '03 - 20:37 by Chris »

Chris

  • Posts: 1860
Re: About BASS_StreamGetLength
« Reply #2 on: 9 Feb '03 - 17:03 »
Hi....Its possible.....without creating a stream...
If you are Using Delphi Take the MPEGaudio(or wav or wma) Units...
From http://jfaul.de/atl
so you can retrieve the Length(and the TagInfos) of a audiofile...

Chris
« Last Edit: 9 Feb '03 - 23:22 by Chris »

Sashur

  • Posts: 13
Re: About BASS_StreamGetLength
« Reply #3 on: 9 Feb '03 - 22:37 »
Hi

I need to play sound while other software downloading it. Winamp can it, how I can do somthing like this? Bass library stop playing after (stream position=stream length). How to override it?

Ian @ un4seen

  • Administrator
  • Posts: 21363
Re: About BASS_StreamGetLength
« Reply #4 on: 10 Feb '03 - 11:49 »
What BASS version are you using? Since 1.6, BASS will play beyond the initial file length if there's more data available, but the BASS_StreamGetLength value will not be updated until it reaches the new end of the file. See the BASS_StreamCreateFile docs.