25 May '13 - 10:51 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: Tempo and Flac  (Read 339 times)
ouestaudition
Posts: 21


« on: 16 Nov '11 - 21:31 »
Reply with quoteQuote

Hello,

I'm using Bass with Flac files and everything is ok with vb.

I would like to change tempo while playing file of this kind.

Is there a way to do it ?

The examples in vb are not for FLAC and i didn't find the way to do that.

Thank you for your help.


Logged
Chris
Posts: 1507


« Reply #1 on: 16 Nov '11 - 21:49 »
Reply with quoteQuote

Hi
  just load the bassflac addon as
  BASS_PluginLoad.......
thats all
chris
Logged
ouestaudition
Posts: 21


« Reply #2 on: 16 Nov '11 - 22:50 »
Reply with quoteQuote

Thank you for your response.
It seems to be easy but do not work...

In vb :

Call BASS_PluginLoad("bassflac.dll", 0)
Source(NumeroSource) = BASS_FLAC_StreamCreateFile(BASSFALSE, StrPtr(Controls("NomFichier" & NumeroMixer).value), 0, 0, BASS_STREAM_DECODE Or BASS_SAMPLE_FLOAT)

work fine but if i add

Source(NumeroSource) = BASS_FX_TempoCreate(Source(NumeroSource), BASS_FX_FREESOURCE)

to be able to change tempo, it doesn't work.

Do you know where is the problem ?

Thank's a lot for your help

Logged
ouestaudition
Posts: 21


« Reply #3 on: 16 Nov '11 - 23:43 »
Reply with quoteQuote

I found the solution, problem was with flag BASS_FX_FREESOURCE

Without this, everything is ok.

Thank you for your help and thank you for your work

Logged
Chris
Posts: 1507


« Reply #4 on: 17 Nov '11 - 13:47 »
Reply with quoteQuote

Call BASS_PluginLoad("bassflac.dll", 0)
Source(NumeroSource) = BASS_FLAC_StreamCreateFile(BASSFALSE, StrPtr(Controls("NomFichier" & NumeroMixer).value), 0, 0, BASS_STREAM_DECODE Or BASS_SAMPLE_FLOAT)

work fine but if i add

Source(NumeroSource) = BASS_FX_TempoCreate(Source(NumeroSource), BASS_FX_FREESOURCE)


so thats more easy

Call BASS_PluginLoad("bassflac.dll", 0)
Source(NumeroSource) = BASS_StreamCreateFile(BASSFALSE, StrPtr(Controls("NomFichier" & NumeroMixer).value), 0, 0, BASS_STREAM_DECODE Or BASS_SAMPLE_FLOAT)
// here a litle check if the channel is valid
if Source(NumeroSource) <> 0......

Source(NumeroSource) = BASS_FX_TempoCreate(Source(NumeroSource), 0)

Chris
« Last Edit: 17 Nov '11 - 13:49 by Chris » Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines