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

nr1

  • Posts: 78
Re: BASS.NET API 2.4.8.0
« Reply #975 on: 14 Oct '11 - 15:08 »
In my case, I have one scrolling wave, and one full wave. Before I call CreateBitmap (for full wave) I set DrawBeats to false, CreateBitmap and then set DrawBeats back to true. At this time I lock the normal CreateBitmap for scrolling wave.


Hi,
i want to have the same (2 different waveforms), but not by just using one waveForm and changing the parameters (DrawBeats, DrawBeats, etc) each time when creating a new bitmap.

Another idea could be, that you create a second Waveform object and feed wave data from main waveform to the second. Data can be found at Waveform.Wave.data. If both have the same resolution it should work (not testet...)

MB

I tried this, but couldn't get it working, because i don't know which properties have to be set in order to createBitmap (like isrendered, frames total, frames done, etc). Furthermore those can't be changed directly.

muntablues

  • Posts: 196
Re: BASS.NET API 2.4.8.0
« Reply #976 on: 14 Oct '11 - 15:11 »
What is the difference between both waveforms? Please list all different properties...

nr1

  • Posts: 78
Re: BASS.NET API 2.4.8.0
« Reply #977 on: 14 Oct '11 - 15:27 »
In fact it will be only the DrawWaveForm (=drawtype) and all the drawing colors.

muntablues

  • Posts: 196
Re: BASS.NET API 2.4.8.0
« Reply #978 on: 14 Oct '11 - 16:09 »
That should be no problem. Make two methods and change colors and drawtype before you call CreateBitmap. something like that:

Code: [Select]
        object locker = new object();

        public Image GetBlueHalf(Size size)
        {
            lock (locker)
            {
                WF.DrawWaveForm = WaveForm.WAVEFORMDRAWTYPE.HalfMono;
                WF.ColorLeft = Color.Blue;
                return WF.CreateBitmap(size.Width, size.Height, -1, -1, false);
            }
        }

        public Image GetRedStereo(Size size)
        {
            lock (locker)
            {
                WF.DrawWaveForm = WaveForm.WAVEFORMDRAWTYPE.Stereo;
                WF.ColorLeft = Color.Red;
                return WF.CreateBitmap(size.Width, size.Height, -1, -1, false);
            }
        }

I do it like that and it works fine...

Good luck *gg*

nr1

  • Posts: 78
Re: BASS.NET API 2.4.8.0
« Reply #979 on: 14 Oct '11 - 16:29 »
thx for this example.
I was guessing that you are doing it like this :)

muntablues

  • Posts: 196
Re: BASS.NET API 2.4.8.0
« Reply #980 on: 14 Oct '11 - 17:12 »
And so it is not usable for you?

nr1

  • Posts: 78
Re: BASS.NET API 2.4.8.0
« Reply #981 on: 14 Oct '11 - 18:02 »
Of course, it works perfectly :)
I just wanted to check if there is a "smoother" option with less overhead.

muntablues

  • Posts: 196
Re: BASS.NET API 2.4.8.0
« Reply #982 on: 14 Oct '11 - 18:12 »
I don't know an other ;)

But in my opinion, change of all the properties is not the problem. The time consuming part is the rendering of the bitmap and not changing the style. But Bernd would know that exactly (I am just guessing -> or better thinking about how I would solve this stuff)


radio42

  • Posts: 4576
BASS.NET for the .Net Framework v4 !
« Reply #983 on: 18 Oct '11 - 09:57 »
IMPORTANT NOTE:

I am planning to build the next version of BASS.NET based on the v4 .Net Framework.

If there are any valid arguments not to do this, please post them here...THX!

riesm

  • Posts: 51
Re: BASS.NET API 2.4.8.0
« Reply #984 on: 18 Oct '11 - 15:30 »
Well, first off, .NET4 is not compatible with .NET 2-3.5 projects. I do hope you will consider having two side-by-side versions for both frameworks!

Keep up your good work Bernd!

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.8.0
« Reply #985 on: 18 Oct '11 - 16:02 »
No, the plan is to 'only' support the .Net v4 framework in the future.
So yes, that means, you should upgrade your projects to .Net v4 as well.
See here: http://www.un4seen.com/forum/?topic=13105.msg91199

radio42

  • Posts: 4576
BASS.NET API 2.4.8.0 Help for VS2010
« Reply #986 on: 20 Oct '11 - 14:05 »
With VS 2010 MS introduced the new MS Help Viewer system.
So far Bass.Net didn't offer direct integration with it.
This is now over.

Please download the Bass.Net v2.4.8.0 MS Help Viewer documentation here:
  www.un4seen.com/filez/4/Bass.Net_HelpVS2010.zip

This package allows you to install the BASS.NET documentation for MS Help Viewer.
When installed it will be integrated into your VS 2010 environment
Allowing you to press F1 within the IDE to get immediate help about the topic.

Note: This is a preliminary version!
As such it:
-   shows “Version: 2.4.9.0“ as the assembly version (even if it is still based on the v2.4.8.0 version)
-   shows ‘BASS.NET API for .Net v4.0’ in the footer (even if the current version is still based on the v2.0/v3.5 .Net framework)!
So don’t get confused about this.

Installation:
--------------
1.   Extract the zip file to any folder.
2.   Locate and run the “Install_Bass.Net_HelpVS2010.bat” script.
3.   When the Help Library Agent dialog opens, select ‘Add’ for the BASS.NET API content and select ‘Update’
4.   That’s it

Have fun,
This package allows you to install the BASS.NET documentation for MS Help Viewer.
When installed it will be integrated into your VS 2010 environment
Allowing you to press F1 within the IDE to get immediate help about the topic.

Note: This is a preliminary version!
As such it:
-   shows “Version: 2.4.9.0“ as the assembly version (even if it is still based on the v2.4.8.0 version)
-   shows ‘BASS.NET API for .Net v4.0’ in the footer (even if the current version is still based on the v2.0/v3.5 .Net framework)!
So don’t get confused about this.

Installation:
--------------
1.   Extract the zip file to any folder.
2.   Locate and run the “Install_Bass.Net_HelpVS2010.bat” script.
3.   When the Help Library Agent dialog opens, select ‘Add’ for the BASS.NET API content and select ‘Update’
4.   That’s it

Have fun,
Bernd Niedergesäß, radio42

gyrosp

  • Posts: 31
Re: BASS.NET API 2.4.8.0
« Reply #987 on: 30 Oct '11 - 22:07 »
Are there any forecasts when BASS_DSHOW will work with Bass 2.4.8.0 for C# (.net 3.5)?

I'm using Astro29's basic wrapper at the moment but would really like to move on :).

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.8.0
« Reply #988 on: 30 Oct '11 - 22:41 »
I hope to finish it this week.

gyrosp

  • Posts: 31
Re: BASS.NET API 2.4.8.0
« Reply #989 on: 31 Oct '11 - 09:41 »
I hope to finish it this week.
These are really good news :).

ken

  • Posts: 739
Re: BASS.NET API 2.4.8.0
« Reply #990 on: 31 Oct '11 - 14:37 »
I have some issues with speakerflag with Mixer. I can't assign it. I use the "Multichannel" device in M-Audio Delta 1010, and have set it to multichannel in windows control panel (win 7) test in Windows plays tone on each channel so this works.

I init bass and add mixer like this:
Code: [Select]

 _bassOK = Bass.BASS_Init(AudioDevice, 44100, BASSInit.BASS_DEVICE_DEFAULT | BASSInit.BASS_DEVICE_LATENCY, IntPtr.Zero);

BASS_INFO info = new BASS_INFO();
if (Bass.BASS_GetInfo(info))
{
   _numSpearkers = info.speakers;
}

_mixer = BassMix.BASS_Mixer_StreamCreate(44100, _numSpearkers, BASSFlag.BASS_SAMPLE_FLOAT | BASSFlag.BASS_STREAM_AUTOFREE | BASSFlag.BASS_MIXER_NONSTOP);


Add stream to mixer
Code: [Select]
BassMix.BASS_Mixer_StreamAddChannel(_mixer , _channel1, BASSFlag.BASS_MIXER_DOWNMIX | BASSFlag.BASS_STREAM_AUTOFREE | BASSFlag.BASS_SPEAKER_FRONT);

my result is with flag BASS_SPEAKER_FRONT ot plays on all outputs/speakers, with BASS_SPEAKER_REAR it "plays" but no output on any.

What have I missed here?

/Ken

smodlo

  • Guest
Re: BASS.NET API 2.4.8.0
« Reply #991 on: 31 Oct '11 - 16:06 »
I hope to finish it this week.

 :)  :)  :)  :)

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.8.0
« Reply #992 on: 3 Nov '11 - 16:18 »
I guess I might delay it a bit, since I found so many inconsistent things between the .h file, the .pas file as well as the .chm file - that I am a bit confused what is correct and which functions/options do really exist. This needs to be clarified first with Ionut...stay tuned.

gyrosp

  • Posts: 31
Re: BASS.NET API 2.4.8.0
« Reply #993 on: 4 Nov '11 - 13:58 »
I guess I might delay it a bit, since I found so many inconsistent things between the .h file, the .pas file as well as the .chm file - that I am a bit confused what is correct and which functions/options do really exist. This needs to be clarified first with Ionut...stay tuned.

What a pity but thanks for the info  :) (Unfortunately there is no smile with thumbs up  ;))

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.8.0
« Reply #994 on: 4 Nov '11 - 14:00 »
Not my thing:
Take a look to the .pas API file, the .h API file and the .chm documentation - they are totally different - which makes you lost is space...

gyrosp

  • Posts: 31
Re: BASS.NET API 2.4.8.0
« Reply #995 on: 9 Nov '11 - 08:00 »
Any news regarding the wrapper ;)?

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.8.0
« Reply #996 on: 9 Nov '11 - 09:28 »
No, still waiting for feedback from Ionut to deliver a clean DSHOW API.

jjohnston

  • Posts: 39
Re: BASS.NET API 2.4.8.0
« Reply #997 on: 11 Nov '11 - 20:04 »
Hey Bernd, a small feature request:

It'd be nice if the BASS_PluginGetInfo(0).formats call (i.e., the default Bass file formats) accounted for the variability in the new Media Foundation support. That is to say, now that BASS supports AAC formats (*.m4a) out of the box on Windows 7 machines, the logic for returning the formats needs to be expanded a bit. In addition to what it currently returns, it should add some additional formats that are dependent on the Windows version.

Thanks!
Jacob

radio42

  • Posts: 4576
Re: BASS.NET API 2.4.8.0
« Reply #998 on: 11 Nov '11 - 21:55 »
That might be possible, but I didn't find any resonable code yet to detect which formats are actually supported by native BASS.

jjohnston

  • Posts: 39
Re: BASS.NET API 2.4.8.0
« Reply #999 on: 11 Nov '11 - 22:02 »
I don't think there is a mechanism to get it from Bass. However, there is a table of what Media Foundation supports, including the minimum version of Windows, here:

http://msdn.microsoft.com/en-us/library/windows/desktop/dd757927(v=vs.85).aspx