22 May '13 - 23:42 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: 1 ... 41 42 [43] 44 45 ... 60
  Reply  |  Print  
Author Topic: BASS.NET API 2.4.10.1  (Read 368774 times)
Renegade
Posts: 148


« Reply #840 on: 7 Oct '10 - 10:35 »
Reply with quoteQuote

Grrr...

Please forget the two posts above, unless you know what's going on.

It works now. No significant changes. No config alterations. No different flags. It just works.

No idea what was going on there.

Baffled.

I rebooted 3x before I posted above. Now all of a sudden, it works. Stunned. I did nothing more than read documentation and play with some inconsequential code.

These are not the errors you are looking for. Move along. Smiley
Logged
Latch
Posts: 89


« Reply #841 on: 14 Oct '10 - 21:34 »
Reply with quoteQuote

Is it possible for you to create a secondary implementation when creating a new waveform?  Currently you need to refer to a file, and that's fine for audio files, but with BassDSHOW, it would be nice to get a waveform for videos as well.  Maybe refer to the audio stream as opposed to a file?  Just a thought.
Logged
Renegade
Posts: 148


« Reply #842 on: 15 Oct '10 - 04:11 »
Reply with quoteQuote

Is it possible for you to create a secondary implementation when creating a new waveform?  Currently you need to refer to a file, and that's fine for audio files, but with BassDSHOW, it would be nice to get a waveform for videos as well.  Maybe refer to the audio stream as opposed to a file?  Just a thought.

Good question. I've not tried this out yet.
Logged
radio42
Posts: 4012


« Reply #843 on: 15 Oct '10 - 07:39 »
Reply with quoteQuote

The "RenderStart" method of the WaveForm cloass also allows you to specify an already prepared decoding stream instead of a file.
So if BASS_DSHOW offers the creation of decoding streams you might use the WaveForm with it.
Logged
Latch
Posts: 89


« Reply #844 on: 16 Oct '10 - 20:30 »
Reply with quoteQuote

The "RenderStart" method of the WaveForm cloass also allows you to specify an already prepared decoding stream instead of a file.
So if BASS_DSHOW offers the creation of decoding streams you might use the WaveForm with it.

Unfortunately that doesn't work.  It also doesn't render a waveform for any audio now either.  I think the problem is in the fact that in the NEW method for creating the waveform, in order to have a callback proceedure for background wave generation, you have to specify the file name as well.  Here's my code and you can see the old "commented out" renderstart method I previously used.

#Region "WaveForm Subs"
    Private Sub ShowWaveForm()
        ' setup waveform
        SetupWaveForm()
        DrawWave()
    End Sub
    Private Sub DrawWave(Optional ByVal highQuality As Boolean = False)
        If Not wf Is Nothing Then
            Me.pbPosition.BackgroundImage = wf.CreateBitmap(Me.pbPosition.Width, Me.pbPosition.Height, -1, -1, highQuality)
            If wf.IsRenderingInProgress Then Exit Sub
        Else
            Me.pbPosition.BackgroundImage = Nothing
        End If
    End Sub
    Private Sub SetupWaveForm()
        wf = New WaveForm(frmMain.PlayerTemp.Path, New WAVEFORMPROC(AddressOf MyWaveFormCallback), Me)
        wf.FrameResolution = 0.01
        wf.DrawEnvelope = False
        wf.CallbackFrequency = 500 ' in milliseconds
        wf.ColorBackground = My.Settings.skinFormBackColor ' Color.Black
        wf.ColorLeft = My.Settings.skinWaveformForeColor ' Color.FromArgb(255, 0, 0, 85) ' Color.MidnightBlue
        wf.ColorRight = My.Settings.skinWaveformForeColor ' Color.FromArgb(255, 0, 0, 85) ' Color.MidnightBlue
        'wf.RenderStart(True, BASSFlag.BASS_SAMPLE_FLOAT Or BASSFlag.BASS_STREAM_PRESCAN)
        wf.RenderStart(frmMain.PlayerTemp.Stream, True)
    End Sub
    Private Sub MyWaveFormCallback(ByVal framesDone As Integer, ByVal framesTotal As Integer, ByVal elapsedTime As TimeSpan, ByVal finished As Boolean)
        ' will be called during rendering...
        DrawWave(False)
        If finished Then
            DrawWave(True)
        End If
    End Sub
#End Region
Logged
radio42
Posts: 4012


« Reply #845 on: 17 Oct '10 - 12:24 »
Reply with quoteQuote

That's strange here it just works fine (also with decoding stream not using any filename)!
But I am not using BASS_DSHOW!
So can you please omit any BASS_PluginLoad("bass_dshow.dll") to avoid loading/using BASS_DSHOW and try it again without BASS_DSHOW.
It seems that there might be a problem with loading BASS_DSHOW, as in another post someone also reported a strange when BASS_DHOW was loaded/used. So maybe this is the cause of the problem?
Logged
Latch
Posts: 89


« Reply #846 on: 18 Oct '10 - 04:08 »
Reply with quoteQuote

That's strange here it just works fine (also with decoding stream not using any filename)!
But I am not using BASS_DSHOW!
So can you please omit any BASS_PluginLoad("bass_dshow.dll") to avoid loading/using BASS_DSHOW and try it again without BASS_DSHOW.
It seems that there might be a problem with loading BASS_DSHOW, as in another post someone also reported a strange when BASS_DHOW was loaded/used. So maybe this is the cause of the problem?

Well then that's a problem because our app needs to play video and we are replacing the old BassVideo plugin with the new Bass_DSHOW.  Since Bass.Net no longer supports BassVideo, we either have to keep the old Bass and Bass.Net engine to use BassVideo which I'd rather not because that means we can never move forward with all the other improvements, or just get Bass_DSHOW to work, which would be much more preferrable.


Logged
radio42
Posts: 4012


« Reply #847 on: 18 Oct '10 - 09:21 »
Reply with quoteQuote

Yes, but is that  (BASS_DSHOW) the problem?
Can you confirm that?

However, I can not do much about this:
a) BassVideo can not be supported by Bass.Net any longer, because the developer doesn't want that
b) If BASS_DSHOW is the cause of the problem, I guess it needs to be fixed in BASS_DSHOW!
Logged
Latch
Posts: 89


« Reply #848 on: 19 Oct '10 - 15:48 »
Reply with quoteQuote

Yes, but is that  (BASS_DSHOW) the problem?
Can you confirm that?

However, I can not do much about this:
a) BassVideo can not be supported by Bass.Net any longer, because the developer doesn't want that
b) If BASS_DSHOW is the cause of the problem, I guess it needs to be fixed in BASS_DSHOW!

When Bass_DSHOW is loaded the old method of referring to the file still works, but obviously it doesn't work for videos.  That would stand to reason that Bass_DSHOW isn't affecting other files.  I've waited over a year to finally replace BassVideo with something better but it would seem that Bass_DSHOW has the same issues.  I wish they could just make it work like every other "file type" plugin where you can use all the built-in bass methods and the plugin simply acts like an interpreter.
Logged
Latch
Posts: 89


« Reply #849 on: 26 Oct '10 - 23:11 »
Reply with quoteQuote

I REALLY REALLY wish you would put back in support for BassVideo.  I realise the guy has stopped developing it, but you need to remember there are many of us who still need to use it until Bass_DSHOW is completely working (which may be a while).  It leaves me stuck using the 2.4.2 version of Bass.Net which also forces me to use older versions of Bass and its add-ons as well.  There is SO much I can't do.  I would like to also use the new BassWASAPI and can't.  I think I heard you mention that the developer of Bassvideo asked you to pull it, but seriously what would it hurt to have it in there?  You made the developer happy by removing it, but you've angered a lot more people in the process.  It's just one object off your AddOn class and doesn't bloat the assembly so why not make some of us happy and just add it back in?
Logged
riesm
Posts: 51


« Reply #850 on: 27 Oct '10 - 02:21 »
Reply with quoteQuote

In perhaps less stronger words (but do agree though), I feel the same. I am holding off upgrades, because I still need to support BassVideo in my apps (Bass_Dshow still not getting to the same quality). You might want to release the BassVideo calls seperately, so we could load them together with BASS.NET? Many thanks in advance for at least considering releasing the BassVideo calls.
Logged
radio42
Posts: 4012


« Reply #851 on: 27 Oct '10 - 08:21 »
Reply with quoteQuote

This is not up to me!
The developer of BassVideo told me, that I should remove support for BassVideo from Bass.Net - as he even wanted to come up with his own .Net wrapper.
So I guess you need to talk to the BassVideo developer to solve this...
Logged
Latch
Posts: 89


« Reply #852 on: 27 Oct '10 - 17:43 »
Reply with quoteQuote

This is not up to me!
The developer of BassVideo told me, that I should remove support for BassVideo from Bass.Net - as he even wanted to come up with his own .Net wrapper.
So I guess you need to talk to the BassVideo developer to solve this...

Well, it would appeared he lied to you.  There is no mention at all about BassVideo on his web site anymore.  You aren't legally obligated to him in any way.  You certainly have the right to make a .Net wrapper for it since he obviously isn't.  I'm sure you still kept the code for it.  Why not just make a "secret" BassVideoWrap.dll out of your old code and send it to us few developers who need it.  It's just not fair to pull support for something that is needed by many apps.  Making us people who've paid you money should be a higher priority over a guy who never sent you a dime AND lied to you.  Always put your customers first and you can't go wrong.  Besides, it's good Karma  Wink
Logged
radio42
Posts: 4012


« Reply #853 on: 27 Oct '10 - 23:05 »
Reply with quoteQuote

I'll see if I can find my old source code for BassVideo and simply post it here...

Here is the 'old', 'original' C# source code for BassVideo:
www.un4seen.com/filez/4/BassVideo.zip

NOTE: This is provided as is - you might need to adjust the source to get it working for you. No further support is given on it!
« Last Edit: 28 Oct '10 - 08:46 by radio42 » Logged
Latch
Posts: 89


« Reply #854 on: 28 Oct '10 - 20:35 »
Reply with quoteQuote

I'll see if I can find my old source code for BassVideo and simply post it here...

Here is the 'old', 'original' C# source code for BassVideo:
www.un4seen.com/filez/4/BassVideo.zip

NOTE: This is provided as is - you might need to adjust the source to get it working for you. No further support is given on it!

Thank you  Grin
Logged
Latch
Posts: 89


« Reply #855 on: 29 Oct '10 - 03:06 »
Reply with quoteQuote

Well, I used a utility to convert the C# code to VB.Net.  Then I realized a few things had changed since the last Bass.Net that we had, that used the last known working copy of BassVideo (2.4.1.3).  Also, there were some things missing like the BASSVIDEOFLAGS enums (which I was able to piece back together myself) and a couple of methods like BASS_Video_Init and BASS_Video_SetConfig which are obviously crucial for it to work.  Needless to say, after a couple hours work, I'm back to square one.

Maybe you can enlighten me on some things.  Is this code supposed to work with BassVideo 2.4.1.3 or was there a more recent version we should use, or is it for an older version?  ...and what happened to the missing flags and proceedures?

Logged
radio42
Posts: 4012


« Reply #856 on: 29 Oct '10 - 07:20 »
Reply with quoteQuote

It was the most recent version I had - as said above...no futher support on this one!
Logged
ken
Posts: 630


« Reply #857 on: 29 Oct '10 - 12:04 »
Reply with quoteQuote

How do I write a stream created by "BASS_StreamCreate" to a file? without run the channel via BassEncoder.  Can I write to file in STREAMPROC?

/Ken
Logged
radio42
Posts: 4012


« Reply #858 on: 29 Oct '10 - 13:51 »
Reply with quoteQuote

That depends which file format you are targeting.
However, the STREAMPROC only delivers the raw sample data in PCM format.
So even if you want to write a .wav file you need to write the WAV header yourself.
And if you want to write an .mp3 target file, you definitly need to encode it - so here BASSenc is definitly needed!
Why don't you want to use BASSenc?
Logged
ken
Posts: 630


« Reply #859 on: 29 Oct '10 - 14:20 »
Reply with quoteQuote

That depends which file format you are targeting.
However, the STREAMPROC only delivers the raw sample data in PCM format.
So even if you want to write a .wav file you need to write the WAV header yourself.
And if you want to write an .mp3 target file, you definitly need to encode it - so here BASSenc is definitly needed!
Why don't you want to use BASSenc?

I get data as "push-callback" from a online music service, and want to save that to disc without encoding it again (audio is in ogg)
Logged
Pages: 1 ... 41 42 [43] 44 45 ... 60
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines