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

riesm

  • Posts: 51
Re: BASS.NET API 2.4.3.1
« Reply #575 on: 2 Feb '09 - 17:26 »
I kinda was afraid of that as well. Thanks for looking into it. I will be happy to test!

riesm

kenshin1101

  • Posts: 545
Re: BASS.NET API 2.4.3.1
« Reply #576 on: 3 Feb '09 - 11:53 »
Hmm, seems, that the 'latest' BassVideo API has completly changed!
So that will take me at least a couple of days in order to adopt that for BASS.NET - as there is no history log or anything provided...meaning I need to scan and check every little function again ;-(
Sorry for that, but I hope to finish that til next week...

not really
http://www.un4seen.com/filez/6/lastest_stuff.zip
there CHM file and have change log at first of documents  ;)

ken

  • Posts: 739
Re: BASS.NET API 2.4.3.1
« Reply #577 on: 5 Feb '09 - 11:47 »
Hi Bernd.

Is somthing changed for streaming?  I get only "white noice" from my application when streaming MP3 to Schoucast and Icecast. WMA streaming works fine.

In your "live streaming", I get strange sound and noice.

Any ideas?  I have the latest versione of bass, bassenc & bassNET

Edit:
Just tested the "Cast.exe" from Ian and there streaming works as it should (with same DLL versions)



/Ken
« Last Edit: 5 Feb '09 - 11:54 by ken »

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.3.1
« Reply #578 on: 5 Feb '09 - 13:05 »
Might it be, that you are using an 'older' lame.exe?
The current BASS.NET EncoderLAME class works with lame v3.98.
And note, that lame has changed their internal byte-ordering from default big-endian to little-endian.

ken

  • Posts: 739
Re: BASS.NET API 2.4.3.1
« Reply #579 on: 5 Feb '09 - 16:21 »
Might it be, that you are using an 'older' lame.exe?
The current BASS.NET EncoderLAME class works with lame v3.98.
And note, that lame has changed their internal byte-ordering from default big-endian to little-endian.

Oh yes... I now have lame 3.98.2 and streaming works just fine!  Thank Bernd.

"big-endian to little-endian" is that some thing I need to wory about, or change my settings?

/Ken

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.3.1
« Reply #580 on: 5 Feb '09 - 17:54 »
Little/Big-Endian denotes the byte order in which integer values will be saved in binary formats.
It depends.
Each command-line encoder expects a certain byte order when the PCM data is send to it (e.g. via STDIN).
And such a call to BASS_Encoder

Regarding lame.exe:
In previous versions of it you needed to use the "-x" command-line option (which was also used by the previous BASS.NET version)
In the current version you don't need the "-x" command-line option (which is now also used by the current BASS.NET version)

So as you are using the EncoderLAME class, you just have to make sure to use the latest lame.exe (v3.98 or above).

riesm

  • Posts: 51
Re: BASS.NET API 2.4.3.1
« Reply #581 on: 15 Feb '09 - 13:41 »
Hi Bernd,

Any news on an updated .NET package for the latest BassVideo release? Thx. in advance.

Cheers,
riesm

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.3.1
« Reply #582 on: 15 Feb '09 - 15:31 »
Will be ready by mid of this week - sorry for the delay.

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.4.0
« Reply #583 on: 17 Feb '09 - 15:05 »
17.02.2009: Version 2.4.4.0 is out.

BASS: updated to support v2.4.2.5
BASSmidi: added support for v2.4.2.1
BASS_AAC: added support for v2.4.1.0
BassVideo: updated to support latest v2.4.1.3
General:
  - Tags.TAG_INFO: disc, conductor, grouping, mood, rating, isrc added
  - Misc.Encoders: support for new TAG_INFO members added
  - Ten53.Multimedia.Midi namespace renamed to radio42.Multimedia.Midi

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

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

riesm

  • Posts: 51
Re: BASS.NET API 2.4.4.0
« Reply #584 on: 18 Feb '09 - 14:57 »
Hi Bernd,

I still get this error message using the latest BASS.NET and BassVideo:

Code: [Select]
Unable to find an entry point named 'BassVideo_StreamCreateFile' in DLL 'BassVideo.dll'
Problem at my side or is BASS.NET the culprit?

Thx.
riesm

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.4.0
« Reply #585 on: 18 Feb '09 - 15:09 »
Are you using the latest-stuff? (the link to BassVideo just 5 posts above)?
If yes, then I guess we need to wait for Kenshin to response - as the signature etc. is exactly as specified in his .pas file.

But you might also try the "BASS_Video_StreamCreateFileEx" function, as the "BASS_Video_StreamCreateFile" (without Ex) is intended to be used by the bass plugin system - meaning it will normally be called by a BASS_StreamCreateFile if BassVideo has been loaded via BASS_PluginLoad.
So maybe Kenshin hasn't exported the "BASS_Video_StreamCreateFileEx" - even though it is defined in his .pas API?!

But I have no idea - as I already found like 10 functions either mentioned in the documentation but missing in the .pas file or they are within the .pas file but not mentioned in the documentation.

Edit:
I have just tested it here and I don't get any exceptions. So really make sure to use the "http://www.un4seen.com/filez/6/lastest_stuff.zip" !
« Last Edit: 18 Feb '09 - 17:20 by radio42 »

riesm

  • Posts: 51
Re: BASS.NET API 2.4.4.0
« Reply #586 on: 21 Feb '09 - 14:42 »
Hi Bernd,

I have got it working now, however, I get this error message:
Quote
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

as soon as it hits the line:
BassVideo.BASS_Video_SetVideoWindow(Stream, pVideo1.Handle, pVideo1.ClientRectangle, 0)


Code: [Select]
Stream = Un4seen.Bass.AddOn.Video.BassVideo.BASS_Video_StreamCreateFile(Filename, BASSFlag.BASS_VIDEO_AUTO_MOVE And BASSFlag.BASS_VIDEO_AUTO_PAINT And BASSFlag.BASS_VIDEO_AUTO_RESIZE, VidProc, Nothing)

        If Stream = 0 Then
            BassLib.BassLibrary.ThrowBassError()
            Exit Sub
        End If

        BassVideo.BASS_Video_SetVideoWindow(Stream, pVideo1.Handle, pVideo1.ClientRectangle, 0)
        BassVideo.BASS_Video_AddVideo(Stream, pVideo2.Handle, pVideo2.ClientRectangle, BASSFlag.BASS_DEFAULT)

Any idea on why that happens?

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.4.0
« Reply #587 on: 21 Feb '09 - 16:50 »
Just tried it myself.
And I get the same error - however, the .Net signature is correct.
So it must be something inside bassvideo.dll...but I don't know what.

riesm

  • Posts: 51
Re: BASS.NET API 2.4.4.0
« Reply #588 on: 22 Feb '09 - 01:43 »
So, how to continue, should I bring this up with kenshin or would you do that? Don't know much about this type of error message, but it seems hard to tackle. Thx.

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.4.0
« Reply #589 on: 22 Feb '09 - 08:21 »
I already posted a message with this issue to Kenshin and try to resolve this...

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.4.0
« Reply #590 on: 23 Feb '09 - 09:04 »
Here is an update to try, which should now fix a bug with "BASS_Video_SetVideoWindow" (I had indeed overseen a signature declaration here).
  www.un4seen.com/filez/4/Bass24.Net_pre.zip

So the new signature is:
void BASS_Video_SetVideoWindow(int handle, IntPtr videoWindowHandle, ref Rectangle videoRect, int videoNum);

riesm

  • Posts: 51
Re: BASS.NET API 2.4.4.0
« Reply #591 on: 23 Feb '09 - 14:12 »
Yes, that did the job. It seems to work now. Thanks for the update!

bernex

  • Posts: 7
Re: BASS.NET API 2.4.4.0
« Reply #592 on: 26 Feb '09 - 11:22 »
When BASS_SFX support???  :)

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.4.0
« Reply #593 on: 26 Feb '09 - 11:28 »
In a couple of days ... I just wanted to wait until the interface is pretty stable.
So expect it to be there beginning/mid of the comming week.

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.4.1
« Reply #594 on: 2 Mar '09 - 16:03 »
Here is a pre-version of BASS.NET v2.4.4.1:
  www.un4seen.com/filez/4/Bass24.Net_pre.zip

BASS_SFX: added support for v2.1.0.0
BASS_FX: added support for v2.4.3.2
BASS_AAC: added support for v2.4.2.0
BassVis: added support for v2.4.1.5

www.fullmm.com

  • Posts: 141
Re: BASS.NET API 2.4.4.0
« Reply #595 on: 2 Mar '09 - 16:34 »
Hi Radio42

Can Bass Support HD sound .

thanks.

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.4.0
« Reply #596 on: 2 Mar '09 - 17:12 »
What do you mean by "HD sound"?
BASS supports all samplerates the device supports as well as multi-channel streams.
So if you define "HD sound" as e.g. "5.1 - 96kHz" then yes ;-)

GambitKZ

  • Posts: 9
Re: BASS.NET API 2.4.4.0
« Reply #597 on: 12 Mar '09 - 22:59 »
Is it possible, show WaveForm of Video file?
As I know in BassVideo we can change language(audio stream). What I want to know - can we show WaveForm of Video file and then we change language(audio stream), WaveForm also change.

thanks.

WarMacre

  • Posts: 18
Re: BASS.NET API 2.4.4.0
« Reply #598 on: 15 Mar '09 - 06:43 »
Firstly, may I congratulate both the developers of BASS and BASS.NET on a fabulous product which surpasses all other API's that deal with audio....by far.

Now, to business.

I have been using BASS.NET for a few days now and, although progress is good, I have battled with the documentation as often the VB code examples contain illegal syntax and character usage. As an example:

Code: [Select]
' decide on L/R channel
    If a % 2 = 0 Then

At first I substituted '%' for the division character '/', thinking it was a typo, but realised it was the same in the C# code block.
After converting the C# code to VB, I realised that '%' should have been 'MOD'. ;)

Also:

Code: [Select]
peakL = CType(Math.Round(32767f * maxL) & 0xFFFF, Integer)
To function correctly, this gets translated to:

Code: [Select]
peakL = Ctype(Math.Round(32767F * maxL)) And &Hffff, Integer)
May I suggest, with all the respect in the world, that you make use of the following website (as I often do):

www.developerfusion.com/tools/convert/csharp-to-vb/

I will eventually get around to learning C#, but until then, the above site stays in my favourites. ;)

Keep up the good work.

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.4.0
« Reply #599 on: 15 Mar '09 - 10:26 »
Hi,
many thanks for finding these typos in the docs - they will be corrected in the next version.
However, I could only find these typos in the 'Overview' chapter of the docs and only exactly once.
But you mention, that other typos also occure 'often'?
I couldn't find any more ... ;-)
So if you have further typos in VB.Net examples, please report them.