Author Topic: BASS.NET API 2.4.12.7  (Read 783443 times)

smesser

  • Posts: 122
Re: BASS .NET API 2.4.0.0 beta!
« Reply #325 on: 21 Jan '08 - 16:33 »
I think I understand.

So, then if my trackbar is -12db to +12 DB
then should my value for volume be 0f at -12 db?

Thanks

PS: If I hard code

FxVolume.fVolume to 0f

I don't get silence.
« Last Edit: 21 Jan '08 - 16:48 by smesser »

radio42

  • Posts: 4576
Re: BASS .NET API 2.4.0.0 beta!
« Reply #326 on: 21 Jan '08 - 17:24 »
No, as 0 = -unlim. dB and not -12dB.

So, with "DBToLevel(dBvalue, 1.0)" you will get the following:
-12dB = 0.25
0 dB   = 0.0
+12dB = 4.0

So for -12dB you will use a Volume level value of 0.25 and for +12dB you will use 4.0 as the volume.

smesser

  • Posts: 122
Re: BASS .NET API 2.4.0.0 beta!
« Reply #327 on: 21 Jan '08 - 20:05 »
No, as 0 = -unlim. dB and not -12dB.

So, with "DBToLevel(dBvalue, 1.0)" you will get the following:
-12dB = 0.25
0 dB   = 0.0
+12dB = 4.0

So for -12dB you will use a Volume level value of 0.25 and for +12dB you will use 4.0 as the volume.

Those are the ranges I see but it doesn't work.

Oh, well I don't want to waste any more effort.

Thanks for your pointers.

smesser

  • Posts: 122
Re: BASS .NET API 2.4.0.0 beta!
« Reply #328 on: 22 Jan '08 - 02:22 »
Well, I decided to look at it one more time.

I have a 10 band EQ and reverb working just fine. So as I mentioned I decided
to add a preamp using BassFX. Which doesn't seem to ever have any effect.

I read someone in the forum to call the following method so that the dll is loaded.

Code: [Select]
BassFx.BASS_FX_GetVersion(4)
I had not tried this before as everything upto BASS_FX_BFX_VOLUME had worked fine.
If I add the call to GetVersion everything still works fine except the following call

Code: [Select]
handle = Bass.BASS_ChannelSetFX(channel, BASSFXType.BASS_FX_BFX_VOLUME, 1);
It gives me the following error

Code: [Select]
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
So before calling GetVersion() the BASS_FX_BFX_VOLUME didn't seem to work and after calling GetVerson ChannelSetFX crashes.

Any clues anyone?


radio42

  • Posts: 4576
Re: BASS .NET API 2.4.0.0 beta!
« Reply #329 on: 22 Jan '08 - 07:54 »
Are you maybe using an older version of the BASS_FX beta add-on?
See this post: http://www.un4seen.com/forum/?topic=2181.msg54226#msg54226

smesser

  • Posts: 122
Re: BASS .NET API 2.4.0.0 beta!
« Reply #330 on: 22 Jan '08 - 15:23 »
 :-[ Well that was it. I was behind one version on Bass and BassFx.

I guess I need to check more often for newer versions.

Thanks for your help

smesser

  • Posts: 122
BASS_BFX_PEAKEQ
« Reply #331 on: 27 Jan '08 - 22:27 »
I created an EQ as per the example code in your help file.
Instead of making it a 3 band eq I made a 10 band EQ.

I used the following center frequecies:

60, 170, 310, 600, 1000, 3000, 6000, 12000, 14000, 16000

When I play and song and adjust the 16K slider (even a little) the channel bombs
out and quits playing music. If I press play again the channel is restored and play
until I adjust the 16k slider again.

What is the range of the BASS_BFX_PEAKEQ EQ?
It seems to exhibit this behavor or anything over 14000.
All the others frequecies seem to work fine.

Am I outside the range?

alcy

  • Posts: 4
WaveForm.RenderStart() problem?
« Reply #332 on: 29 Jan '08 - 11:07 »
I tried below...

Code: [Select]
WaveForm wf = new WaveForm(@"c:\test.wav");
wf.DrawWaveForm = WaveForm.WAVEFORMDRAWTYPE.Stereo;

bool result = wf.RenderStart(false, BASSStream.BASS_STREAM_DECODE | BASSStream.BASS_STREAM_PRESCAN); //true

Code: [Select]
int decStream = Bass.BASS_StreamCreateFile(@"c:\test.wav", 0, 0, BASSStream.BASS_STREAM_DECODE | BASSStream.BASS_STREAM_PRESCAN);

WaveForm wf = new WaveForm();
wf.DrawWaveForm = WaveForm.WAVEFORMDRAWTYPE.Stereo;

bool result = wf.RenderStart(decStream, false); //false

My code is wrong?
Problem occurred on both 2.3.1.7 and 2.4.0.0beta.

Sorry, I can't speak English well...

radio42

  • Posts: 4576
Re: BASS .NET API 2.4.0.0 beta!
« Reply #333 on: 29 Jan '08 - 13:38 »
Could you be a bit more specific.
What exactly is wrong?  What error do you get?  Or what exactly does not work?
Did you try the C# sample called "Simple"?
This sample also uses the WaveForm class to render it - do you also have a problem there?

alcy

  • Posts: 4
Re: BASS .NET API 2.4.0.0 beta!
« Reply #334 on: 29 Jan '08 - 16:37 »
Sorry for my poor explanation.

I tried "Simple" sample.
I referred to sample codes and wrote these codes.

My simple question is "WaveForm can use MOD files (and BASSWinamp)?"

I tried this.
Code: [Select]
WaveForm wf = new WaveForm(@"c:\test.mod");
wf.DrawWaveForm = WaveForm.WAVEFORMDRAWTYPE.Stereo;

bool result = wf.RenderStart(false, BASSStream.BASS_STREAM_DECODE | BASSStream.BASS_STREAM_PRESCAN);
Bass.BASS_ErrorGetCode();
result is false and BASS_ErrorGetCode() returns BASS_ERROR_FILEFORM.
If file is .wav, result is true.

Then I think RenderStart(bool background, BASSStream flags) is calling BASS_StreamCreate() internally.
But decoding MOD files, BASS_MusicLoad() is needed.

Then I tried to create decoding steram by myself using BASS_STREAM_DECODE and  BASS_STREAM_PRESCAN flags.
And call RenderStart(int decodingStream, bool background).
But this function returns false on any file formats.

Is stream checked in RenderStart()?
I checked that stream is valid.
((BASS_CHANNELINFO.ctype & BASS_CTYPE_STREAM) != 0)
This check is not enough?

radio42

  • Posts: 4576
Re: BASS .NET API 2.4.0.0 beta!
« Reply #335 on: 29 Jan '08 - 16:59 »
Yes, currently only "BASS_CTYPE_STREAM" streams are supported, but not "BASS_CTYPE_MUSIC".
I'll look into it for Bass2.4 to see, if I can make it work with music streams in the next version.

alcy

  • Posts: 4
Re: BASS .NET API 2.4.0.0 beta!
« Reply #336 on: 29 Jan '08 - 17:31 »
OK, I understand "BASS_CTYPE_MUSIC" is not supported currently.

But I can't understand why below code results false.
I checked that decStream is valid "BASS_CTYPE_STREAM" stream...

Code: [Select]
int decStream = Bass.BASS_StreamCreateFile(@"c:\test.wav", 0, 0, BASSStream.BASS_STREAM_DECODE | BASSStream.BASS_STREAM_PRESCAN);

WaveForm wf = new WaveForm();
wf.DrawWaveForm = WaveForm.WAVEFORMDRAWTYPE.Stereo;

bool result = wf.RenderStart(decStream, false); //false

thanks.

radio42

  • Posts: 4576
Re: BASS .NET API 2.4.0.0 beta!
« Reply #337 on: 29 Jan '08 - 17:52 »
That's really strange - sounds like a little bug.
Let me check it...

smesser

  • Posts: 122
Re: BASS .NET API 2.4.0.0 beta!
« Reply #338 on: 30 Jan '08 - 16:02 »
That's really strange - sounds like a little bug.
Let me check it...

was this in response to my EQ issue or to alcy's issue?

radio42

  • Posts: 4576
Re: BASS .NET API 2.4.0.0 beta!
« Reply #339 on: 30 Jan '08 - 16:24 »
@alcy: I guess the next 2.4 beta (probably comming tomorrow) will also handle MOD music in the WaveForm.

@smesser: yes, the post was related to alcy.
Regarding the EQ stuff - I guess this has nothing to do with BASS.NET and would have to be handled by JOBnik as your issue seems to be a BASS_FX only one.

xexy_pich

  • Guest
Re: BASS .NET API 2.4.0.0 beta!
« Reply #340 on: 31 Jan '08 - 20:36 »
Is the 64-bits BASS.Net 2.4 available?  :)

radio42

  • Posts: 4576
Re: BASS .NET API 2.4.0.0 beta!
« Reply #341 on: 31 Jan '08 - 21:06 »
It's already ;-)
Every .Net build is compiled for 'Any CPU'.
However, the bass.dll needs to be 64-bit - which is currently not available, but should be soon.

radio42

  • Posts: 4576
Re: BASS .NET API 2.4.0.0 beta!
« Reply #342 on: 2 Feb '08 - 09:04 »
Last BASS.NET beta upload: 15.02.2008 BassVideo support updated, DSP_StreamCopy enhanced, latest versions added

BASS.NET beta:
Full Install:
  www.un4seen.com/filez/4/Bass24.Net.zip

Lib only:
  www.un4seen.com/filez/4/Bass24.Net_beta.zip

BASS_WADSP:
  www.un4seen.com/filez/4/bass_wadsp24.zip

« Last Edit: 15 Feb '08 - 15:03 by radio42 »

ken

  • Posts: 739
Re: BASS .NET API 2.4.0.0 beta!
« Reply #343 on: 16 Feb '08 - 13:51 »
Did I do wrong or is there no C# example code with 2.4 beta installation?


radio42

  • Posts: 4576
Re: BASS .NET API 2.4.0.0 beta!
« Reply #344 on: 17 Feb '08 - 18:01 »
There uis - but I moved it to the <AppUserData> directory!

yps

  • Posts: 144
Re: BASS .NET API 2.4.0.0 beta!
« Reply #345 on: 19 Feb '08 - 19:53 »
Please delete this post, I replied to the wrong thread. Sorry.

gabsoftware

  • Posts: 30
Re: BASS .NET API 2.4.0.0 beta!
« Reply #346 on: 23 Feb '08 - 13:34 »
BASS_MUSIC_PRESCAN is missing although it is referenced in the documentation. Is this a bug or a feature ? :)

radio42

  • Posts: 4576
Re: BASS .NET API 2.4.0.0 beta!
« Reply #347 on: 23 Feb '08 - 14:14 »
It's of course a feature ;-)
No, but honest, the BASS_MUSIC_PRESCAN is the same as the BASS_MUSIC_CALCLEN (which was the name in the prev. version).
So in the next (final) BASS.NET 2.4 version I'll rename BASS_MUSIC_CALCLEN to BASS_MUSIC_PRESCAN.

Renegade

  • Posts: 160
Re: BASS .NET API 2.4.0.0 beta!
« Reply #348 on: 24 Feb '08 - 00:07 »
I'm getting the BASS.NET splash screen displaying even though I've registered it (before any BASS calls). (i.e. BassNet.Registration)

How can I fix this? Is it a new bug?


Ed: Forget that... Seems to have fixed itself...
« Last Edit: 24 Feb '08 - 07:51 by Renegade »

radio42

  • Posts: 4576
Re: BASS .NET API 2.4.0.0 final
« Reply #349 on: 27 Feb '08 - 12:47 »
27.02.2008: Version 2.4.0.0 final is out!

Please see the help file (.chm) for a complete list of changes and take a look to the "Upgrading from 2.3" section!
Note, that support for .Net 1.1 has been discontinued. Supported .Net Framework versions include 2.0, 3.0 and 3.5.

BASS.NET beta:
Full Install:
  www.un4seen.com/filez/4/Bass24.Net.zip

Lib only:
  www.un4seen.com/filez/4/Bass24.Net_update.zip

BASS_WADSP:
  www.un4seen.com/filez/4/bass_wadsp24.zip


Installer notes:
The provided samples are now installed to the <AppDataUser> directory!
« Last Edit: 27 Feb '08 - 15:27 by radio42 »