|
Chris
Posts: 1507
|
 |
« Reply #80 on: 2 Oct '04 - 21:38 » |
Quote
|
Hi var Chan : DWORD;
Chan := BASS_StreamCreateFile(FALSE,PChar(Edit1.text),0,0,BASS_STREAM_DECODE); if Chan = 0 then exit; If (BASS_FX_TempoCreate(chan, BASS_SPEAKER_FRONT) <> 0) Then begin ..................... ....................
Greets Chris
|
|
|
|
« Last Edit: 2 Oct '04 - 21:38 by Chris »
|
Logged
|
|
|
|
|
ken
Posts: 630
|
 |
« Reply #81 on: 3 Oct '04 - 11:42 » |
Quote
|
Well I can't get it working... This is ghow I did it:
BASS_Init(1, 44100, BASS_DEVICE_SPEAKERS, Me.hWnd, 0)
chan = BASS_StreamCreateFile(BASSFALSE, FileName, 0, 0, BASS_STREAM_DECODE)
chanFX = BASS_FX_TempoCreate(chan, BASS_SPEAKER_REAR)
BASS_StreamPlay(chanFX, 0, 0)
...Help, please!
|
|
|
|
|
Logged
|
|
|
|
|
Chris
Posts: 1507
|
 |
« Reply #82 on: 3 Oct '04 - 12:27 » |
Quote
|
Hi var Chan : DWORD;
Chan := BASS_StreamCreateFile(FALSE,PChar(Edit1.text),0,0,BASS_STREAM_DECODE); if Chan = 0 then exit; If (BASS_FX_TempoCreate(chan, BASS_SPEAKER_FRONT) <> 0) Then Bass_StreamPlay (BASS_FX_TempoGetResampledHandle(chan),0, 0);
Greets Chris
|
|
|
|
« Last Edit: 3 Oct '04 - 12:27 by Chris »
|
Logged
|
|
|
|
|
ken
Posts: 630
|
 |
« Reply #83 on: 3 Oct '04 - 13:35 » |
Quote
|
Thanks, now it works! 
|
|
|
|
|
Logged
|
|
|
|
|
WingZero
Posts: 166
|
 |
« Reply #84 on: 4 Oct '04 - 01:45 » |
Quote
|
I noticed some bugs, and, uh... stuff. If you call BASS_FX_Free twice, using BPM, it crashes. Both effects in the DSP example sound crackly (and what's that floatable variable for?) Also, Feedback is spelled incorrectly. Sometimes the examples are messed up. I don't know what it is, but randomly after opening 2 or 3 files, the sound just goes away. It works again after re-opening the example.
|
|
|
|
|
Logged
|
|
|
|
|
Chris
Posts: 1507
|
 |
« Reply #85 on: 4 Oct '04 - 02:23 » |
Quote
|
Which soundcard ,OS and so on ?? Bass_FX is here Part from my Radio/DJ application here Playing 8 hours NOnStop without any Error....!! Greets chris
|
|
|
|
« Last Edit: 4 Oct '04 - 02:25 by Chris »
|
Logged
|
|
|
|
|
(: JOBnik! :)
Posts: 984
|
 |
« Reply #86 on: 4 Oct '04 - 14:35 » |
Quote
|
Hi  I noticed some bugs, and, uh... stuff. If you call BASS_FX_Free twice, using BPM, it crashes.  will check it a bit later today  Both effects in the DSP example sound crackly (and what's that floatable variable for?) ... Sometimes the examples are messed up. I don't know what it is, but randomly after opening 2 or 3 files, the sound just goes away. It works again after re-opening the example. Sounds fine on 3 systems that I've checked and 3 Windows versions. floatable Ooopsss  that I've forgot to write as a flags in BASS_StreamCreateFile(..) function to show that 32-bit floating-point is supported with these effects  Also, Feedback is spelled incorrectly. Ooopss  btw, the IDC_FEEDBACK is spelled correctly and in all other examples  Thank you for info  Have fun!  JOBnik! 
|
|
|
|
« Last Edit: 4 Oct '04 - 14:49 by (: JOBnik! :) »
|
Logged
|
|
|
|
|
(: JOBnik! :)
Posts: 984
|
 |
« Reply #87 on: 5 Oct '04 - 09:19 » |
Quote
|
Hi  I noticed some bugs, and, uh... stuff. If you call BASS_FX_Free twice, using BPM, it crashes. After searching for a bug in BPM, I've finally found it to be in Tempo  The updated BASS_FX "package" will be online shortly  Have fun!  JOBnik! 
|
|
|
|
|
Logged
|
|
|
|
|
WingZero
Posts: 166
|
 |
« Reply #88 on: 5 Oct '04 - 21:54 » |
Quote
|
After searching for a bug in BPM, I've finally found it to be in Tempo  Strange, it was the BPM example that crashed. Must have been a coincidence.
|
|
|
|
|
Logged
|
|
|
|
|
(: JOBnik! :)
Posts: 984
|
 |
« Reply #89 on: 6 Oct '04 - 17:48 » |
Quote
|
Hi  Strange, it was the BPM example that crashed. Must have been a coincidence. * There's a Tempo in a BPM example as well The updated BASS_FX "package" is online  Have fun!  JOBnik! 
|
|
|
|
|
Logged
|
|
|
|
|
RevG
Posts: 453
|
 |
« Reply #90 on: 6 Oct '04 - 20:15 » |
Quote
|
Hey Jobnik, You don't have to worry about sending me the old build anymore because I fixed my problem. Apparently it was some directx lib that I had in my project settings that was linked twice that was making everything mess up, very weird but I fixed it!  Did you include the fix to the dynamic amplification? where you don't let the gain go below 0.01? Cause I tried your new bassfx library, and it doesn't appear to be fixed unless I did something wrong :p I did use Ian's code for the time being and I just put a peice of code at the top of the function that made it work just like shown below and that fixed it. Is that what you did too? I could use Ian's code, but I like using your library makes everything so much more clean! Thanks for your great library! if(amp->gain < 0.01) amp->gain = 0.01;
...
Thanks, Greg
|
|
|
|
|
Logged
|
|
|
|
|
(: JOBnik! :)
Posts: 984
|
 |
« Reply #91 on: 8 Oct '04 - 02:35 » |
Quote
|
Hi  You don't have to worry about sending me the old build anymore because I fixed my problem. Apparently it was some directx lib that I had in my project settings that was linked twice that was making everything mess up, very weird but I fixed it!  What a relief  Did you include the fix to the dynamic amplification? where you don't let the gain go below 0.01? * BASS_FX is updated now.* The DynamicAMP is updated with 32-bit and there're some parameters that changed their max/min values and names as well. * Check the BASS_FX.H/PAS/BAS and BASS_FX.TXT for more info  * Your little Gain issue is fixed as well  tell me if its sound ok  Thanks for your great library! You're welcome  Have fun!  JOBnik! 
|
|
|
|
« Last Edit: 8 Oct '04 - 02:40 by (: JOBnik! :) »
|
Logged
|
|
|
|
|
fmcoder
Posts: 386
|
 |
« Reply #92 on: 17 Oct '04 - 20:19 » |
Quote
|
I downloaded latest (beta1) version of bass_fx and often get "memory could not be "read"" or "memory cannot be "written"" messages in module ntdll.dll and program crashes.
It hadn't happen in older (alpha) version of bass_fx.
I use fx: dynamp, tempo, pitch, samplerate, bpm, flanger 2, echo 2. I dont use 32 bit.
|
|
|
|
|
Logged
|
|
|
|
|
(: JOBnik! :)
Posts: 984
|
 |
« Reply #93 on: 18 Oct '04 - 12:39 » |
Quote
|
Hi  I downloaded latest (beta1) version of bass_fx and often get "memory could not be "read"" or "memory cannot be "written"" messages in module ntdll.dll and program crashes. Is there any Dr. Watson debug file for more info? Thank you  Have fun!  JOBnik! 
|
|
|
|
|
Logged
|
|
|
|
|
fmcoder
Posts: 386
|
 |
« Reply #94 on: 19 Oct '04 - 12:43 » |
Quote
|
No. But now I found that some parameters of FX are out of range... Maybe it's the source of error?
|
|
|
|
« Last Edit: 19 Oct '04 - 12:45 by coder »
|
Logged
|
|
|
|
|
|
|
Irrational86
Posts: 960
|
 |
« Reply #96 on: 19 Oct '04 - 15:31 » |
Quote
|
* Please Read - BASS_FX.TXT - and - BASS_FX.H/PAS/BAS - for info about new ranges and types of DynamicAMP effect :) If BASS_FX is given an out-of-range value, will it crash? Or does it have checks for these things along the way?
|
|
|
|
« Last Edit: 19 Oct '04 - 15:31 by XMinioNX »
|
Logged
|
|
|
|
|
(: JOBnik! :)
Posts: 984
|
 |
« Reply #97 on: 19 Oct '04 - 17:33 » |
Quote
|
Hi  If BASS_FX is given an out-of-range value, will it crash? Or does it have checks for these things along the way? BASS_FX is not checking for range of values, if it's out of range it may crash, especially if the range is less than 0 in some effects (some functions do have range check). * Do you, BASS_FX users, think it's necessary to inlcude the range check in all functions?  Have fun!  JOBnik! 
|
|
|
|
|
Logged
|
|
|
|
|
sgdowney
Posts: 30
|
 |
« Reply #98 on: 19 Oct '04 - 18:30 » |
Quote
|
One of the good things about including range checks is that it may save you some time trying to hunt down mystery bugs in bass_fx that really aren't in bass_fx.
|
|
|
|
|
Logged
|
|
|
|
|
nadia
Posts: 272
|
 |
« Reply #99 on: 25 Oct '04 - 17:53 » |
Quote
|
Hi,  looking inside the provided samples I see some function that uses the handle returned by the BASS_StreamCreateFile and some other function that uses the BASS_FX_TempoGetResampledHandle function: which is the theory to apply in order to understand which handle must be used? Thanks in advance Nadia
|
|
|
|
|
Logged
|
|
|
|
|