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

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.11.1
« Reply #1375 on: 29 Feb '16 - 20:17 »
No, since as it supports the BASS plug-in system you might use it even without extra code.
I am also waiting for the next final BASS version, which is supposed to be released soon - and that new version will of course fully support it.

djagab

  • Posts: 35
Re: BASS.NET API 2.4.11.1
« Reply #1376 on: 15 Mar '16 - 11:42 »
I was looking for a way to use BASS_ATTRIB_NORAMP with the latest bass and latest Bass.net using following code in c#:
Bass.BASS_ChannelSetAttribute(mixerHandle,(BASSAttribute)11, 1);

I need to disable rampin when playing DSF files (via DoP) with my USB DAC. With the line above I am able to achieve what I want using a bass version I received from Ian via a PM a while ago. Looking at the bass api help documents I found the norampin attribute but I did not see it in de bass.net api yet.
If I switch over to the latest official bass version, rampin does not appear to work, using the line of code above. Is BASS_ATTRIB_NORAMP already wrapped in the latest bass.net version? I could not find it. BTW: I am using a linux arm based platform.

Ian @ un4seen

  • Administrator
  • Posts: 20437
Re: BASS.NET API 2.4.11.1
« Reply #1377 on: 15 Mar '16 - 13:46 »
Using "(BASSAttribute)11" to disable ramping should work fine in the meantime. If that's apparently not working, is the BASS_ChannelSetAttribute call reporting success in its return value, ie. returning TRUE?

I've attached a file that you can use to test ramping. With ramping disabled, you should hear a click at the start. With ramping enabled, you shouldn't hear it.

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.11.1
« Reply #1378 on: 15 Mar '16 - 16:57 »
Sorry for not providing an update yet - but I am having a real bad flu and need to stay in bed...

djagab

  • Posts: 35
Re: BASS.NET API 2.4.11.1
« Reply #1379 on: 18 Mar '16 - 17:50 »
Thanks for the reply. Ian: It is working even with the latest bass version on arm linux. It must have been a mistake on my side ;)
@Radio42: Good luck with your flu! Looking forward to the latest bass.net version that has the correct enum support for noramping on a channelplay command.

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.12.0
« Reply #1380 on: 6 Apr '16 - 10:38 »
06.04.2016: Version 2.4.12.0 is out!

General update to all latest versions (especially BASS 2.4.12 and BASSenc 2.4.13)
- added BASSHLS support
- added BASSALAC support (caution, use the new bassalac lib!!! instead of the old bass_alac!!!)


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

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


IMPORTANT NOTE:
Starting with this release I do NOT provide any setup.exe tool anymore!
This means, the full install is a plain zip file (just like for the native bass lib).
Just extract it to any new folder of your choice.

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.12.1
« Reply #1381 on: 28 Apr '16 - 14:43 »
28.04.2016: Version 2.4.12.1 is out!

Note:
   - Bass.Net: .Net Framework v4.5 rebuild
   - Bass.Net.iOS: latest Xamarin.iOS target framework support
   - Bass.Net.Android: latest Mono/Xamarin.Android target framework support
   - Bass.Net.Linux: .Net Framework v4.5 rebuild
   - Bass.Net.OSX: .Net Framework v4.5 rebuild


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

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


IMPORTANT NOTE:
With this release I do NOT provide any setup.exe tool anymore!
This means, the full install is a plain zip file (just like for the native bass lib).
Just extract it to any new folder of your choice.

ken

  • Posts: 739
Re: BASS.NET API 2.4.12.1
« Reply #1382 on: 13 May '16 - 21:43 »
Hi,

I think there is a bug in the WaveForm class, it doesn't render Left and Right audio correct. I used your "Encoder" example. Please see the attached image "waveform1.jpg" here I record some withe noise and pan to Left and Right (the VU meters show correct when pan left/right).

Also if possible I like to see one more mode on "DrawWaveForm" WaveForm.WAVEFORMDRAWTYPE.HalfStereo, please see illustration in attached picture "waveform2.png"

Thanks!

/Ken

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.12.1
« Reply #1383 on: 15 May '16 - 18:50 »
Not sure if there is a bug, as the WaveForm class wasn't changed since a long time.
Was your input really stereo?

Currently there are no plans to add more Drawing Modes...

Dickal

  • Posts: 7
Re: BASS.NET API 2.4.12.1
« Reply #1384 on: 16 May '16 - 07:40 »
Can I play sound from microphone through Bass ? And use different effects?
I had only found how to save record to file.
Give me please example.

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.12.1
« Reply #1385 on: 17 May '16 - 07:49 »
Yes you can and please take a look to the documentation as well as the many provided samples of BASS and Bass.Net.

ken

  • Posts: 739
Re: BASS.NET API 2.4.12.1
« Reply #1386 on: 18 May '16 - 04:43 »
Not sure if there is a bug, as the WaveForm class wasn't changed since a long time.
Was your input really stereo?

Currently there are no plans to add more Drawing Modes...

Yes it is stereo.

I tested WinAmp > Virtual soundcard > "Encoder" (your example code).  In WinAmp I pan left/right

I also used XMPlay and a different vendor of virtual soundcard.  The VU meters on your "Encoder" example show left/right correct when I pan the signal, but not WaveForm. Please test.

Thanks!

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.12.1
« Reply #1387 on: 18 May '16 - 09:13 »
I'll take a look!

Dickal

  • Posts: 7
Re: BASS.NET API 2.4.12.1
« Reply #1388 on: 18 May '16 - 09:35 »
I use microphone, and I have delay on Windows 7. But on Windows 10 it smaller. It is normal ? Do you have nay solutions?

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.12.1
« Reply #1389 on: 18 May '16 - 12:42 »
Guess this is not a Bass.Net specific question....
However, it depends on your driver model and buffer settings.
Lowest Latency can be achieved only with ASIO I guess...

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.12.1
« Reply #1390 on: 18 May '16 - 16:58 »
Here is a pre version (for v4.5 and v3.0 .Net) which should fix the WaveForm drawing issue - it was indeed a small typo error on the right channel rendering.

 www.un4seen.com/filez/4/Bass24.Net_pre.zip



ken

  • Posts: 739
Re: BASS.NET API 2.4.12.1
« Reply #1391 on: 19 May '16 - 05:35 »
Here is a pre version (for v4.5 and v3.0 .Net) which should fix the WaveForm drawing issue - it was indeed a small typo error on the right channel rendering.

 www.un4seen.com/filez/4/Bass24.Net_pre.zip

Thanks, now it works!  sorry to hear that you do not want to add more modes.


radio42

  • Posts: 4576
Re: BASS.NET API 2.4.12.1
« Reply #1392 on: 19 May '16 - 08:27 »
Never say never ;-)
But there are no immediate plans - just need to find some spare time to do so - that's why I don't want to commit anything, which I cannot already oversee.

fstarred

  • Posts: 105
Re: BASS.NET API 2.4.12.1
« Reply #1393 on: 15 Jun '16 - 13:49 »
I've noticed a strange behavior on this version (previously I used the 2.4.10 and had no issues).

With the following code:

Code: [Select]
            bool isBassLoad = Bass.LoadMe();

            System.Diagnostics.Debug.WriteLine("isBassLoad: " + isBassLoad);
            System.Diagnostics.Debug.WriteLine("bass error: " + Bass.BASS_ErrorGetCode());

            isBassLoad = Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero);

            System.Diagnostics.Debug.WriteLine("isBassInit: " + isBassLoad);
            System.Diagnostics.Debug.WriteLine("bass error: " + Bass.BASS_ErrorGetCode());

I have the output:

isBassLoad: False
bass error: BASS_OK
isBassInit: True
bass error: BASS_OK

So, why if isBassLoad=false, everything ahead works well ?

My system is Windows 10

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.12.1
« Reply #1394 on: 16 Jun '16 - 09:27 »
The "LoadMe()" method internally calls a kernel32.dll function called 'LoadLibrary' and it seems, that this is failing.
Note, that this is not any direct BASS function - that's why it returns BASS_OK - since it doesn't touch the bass internal error system.

However, as explained in the docs, any first call to any BASS method will automatically load the native BASS lib - that's why it return true in your 2nd case.

So the the "LoadMe" methods are typically ONLY needed with the 'path' overload in case you want to load it from a different directory.
I am not sure, why the initial LoadMe method is failing in your case, as it shouldn't - one reason might be, that this only searches in the current working directory; while the automatic loading of libs/dlls also searches in various system folders...

TheTeaToper

  • Posts: 2
Re: BASS.NET API 2.4.12.1
« Reply #1395 on: 2 Aug '16 - 21:13 »
Somebody help if you know!
How can i play correctly PCM files (8kHz, 8 bit) with A-Law compression?

Ian @ un4seen

  • Administrator
  • Posts: 20437
Re: BASS.NET API 2.4.12.1
« Reply #1396 on: 5 Aug '16 - 16:12 »
Is the A-Law data in a WAV file? If so, and you're running on Windows, then it should be supported by BASS (using the ACM codec that comes with Windows).

TheTeaToper

  • Posts: 2
Re: BASS.NET API 2.4.12.1
« Reply #1397 on: 10 Aug '16 - 20:10 »
I haven't enough experience in this matter. Please help me to example code or give a link. Widwows 7 (x64).
Very grateful

Ian @ un4seen

  • Administrator
  • Posts: 20437
Re: BASS.NET API 2.4.12.1
« Reply #1398 on: 11 Aug '16 - 15:21 »
If the A-Law data is in a WAV file, then it should be playable with BASS_StreamCreateFile. If you would like to quickly check whether the file is playable, you could try it with one of the pre-compiled examples (eg. BASSTEST.EXE or PLUGINS.EXE) that are included in the BASS package (C\BIN folder).

Dickal

  • Posts: 7
Re: BASS.NET API 2.4.12.1
« Reply #1399 on: 21 Aug '16 - 13:20 »
Hello.
My situation. I start play music, then I change default audio device. I have just got to restart a song. But I want  that the music continue play on other device I chose.
Now I use...
First:
Code: [Select]
Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero);
//and start music
Then:
Code: [Select]
Bass.BASS_Free();
Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero);
//and start music again
Please help, how to continue music play?