Author Topic: Problems with BASS help me!  (Read 6783 times)

Roger

  • Guest
Problems with BASS help me!
« on: 1 Jun '04 - 13:27 »
Hi Guys...

I am with problems in using the unit BASS and BASS-FX. I looked at the examples q they are in the site but I didn't get anything.  
I need to work at the same time with two music, for instance, to play the first and when it is ending, to use a FADEOUT in her, and to use a FADEIN in the second music...  
 
How do I make that?!?

AsmCoder1

  • Posts: 1
Re: Problems with BASS help me!
« Reply #1 on: 1 Jun '04 - 14:19 »
First of all, take a look at the help file that comes with the package (bass.chm).

You'll need the following functions to play two songs with a crossfade inbetween:

BASS_StreamCreateFile
BASS_StreamPlay
BASS_ChannelSlideAttributes
BASS_ChannelSetAttributes
BASS_StreamGetLength
BASS_ChannelBytes2Seconds
BASS_ChannelSeconds2Bytes
BASS_ChannelSetSync

Also, what programming language are you using?

Roger

  • Guest
Re: Problems with BASS help me!
« Reply #2 on: 1 Jun '04 - 18:29 »
First of all, take a look at the help file that comes with the package (bass.chm).

You'll need the following functions to play two songs with a crossfade inbetween:

BASS_StreamCreateFile
BASS_StreamPlay
BASS_ChannelSlideAttributes
BASS_ChannelSetAttributes
BASS_StreamGetLength
BASS_ChannelBytes2Seconds
BASS_ChannelSeconds2Bytes
BASS_ChannelSetSync

Also, what programming language are you using?

I saw the file of help q it comes with the package, but he doesn't mention any example...  
 
I am using Delphi 7, I tried some you sort things out but I didn't get, even with some examples, I am not understanding as using the functions, mainly of volume. How can I control two volumes, a volume for each music???  
 
Like this, I can reduce the volume of the first music while I increase the volume of Monday, at the same time.  
 
Any help, I thank!!!

3delite

  • Posts: 895
Re: Problems with BASS help me!
« Reply #3 on: 1 Jun '04 - 20:45 »
Set a sync on the first channel that will trigger BASS_ChannelSlideAttributes() on both channels, up/down.

Roger

  • Guest
Re: Problems with BASS help me!
« Reply #4 on: 1 Jun '04 - 21:54 »
 How do I do to catch the total time of the music and the current time?

Please, help me!!!

3delite

  • Posts: 895
Re: Problems with BASS help me!
« Reply #5 on: 2 Jun '04 - 18:28 »
Quote
First of all, take a look at the help file that comes with the package (bass.chm).

You'll need the following functions to play two songs with a crossfade inbetween:

BASS_StreamCreateFile
BASS_StreamPlay
BASS_ChannelSlideAttributes
BASS_ChannelSetAttributes
BASS_StreamGetLength
BASS_ChannelBytes2Seconds
BASS_ChannelSeconds2Bytes
BASS_ChannelSetSync

...and BASS_ChannelGetPosition() for current position. ;)