23 May '13 - 13:10 *
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 2 [3] 4  All
  Reply  |  Print  
Author Topic: BASS_CDG  (Read 18858 times)
davidpn
Posts: 6


« Reply #40 on: 18 Nov '10 - 06:12 »
Reply with quoteQuote

I'm using the latest BASS_CDG (2.4.0.1) in conjunction with BASS_FX, and at the end of the track, my application crashes.

I've gone back to using the CDG demo code in case there was something I had introduced that was causing the problem, however it still crashes. From the demo code:

procedure TForm2.Button1Click(Sender: TObject);
begin
  if chan<>0 then
  begin
    BASS_StreamFree(Chan);
    chan:=0;
  end;
  // Note: Added BASS_STREAM_DECODE flag in order to use BASS_FX
  if Opendialog1.Execute(handle) then
    Chan := BASS_StreamCreateFile(False, PChar(OpenDialog1.FileName), 0, 0, BASS_UNICODE or BASS_STREAM_DECODE);
  if (chan=0) then
    Exit;
  Scrollbar1.Max := Round(BASS_ChannelBytes2Seconds(chan, BASS_ChannelGetLength(chan, BASS_POS_BYTE)));
  BASS_CDG_SetVideoWindow(Chan, Panel1.Handle);

  // BASS_FX call to introduce tempo effects:
  Chan := BASS_FX_TempoCreate(Chan, BASS_FX_FREESOURCE);

  BASS_ChannelPlay(Chan, False);
end;

I'm using Delphi 2010.

Thanks in advance
Logged
Astro29
Posts: 179


« Reply #41 on: 18 Jan '11 - 13:00 »
Reply with quoteQuote

Original source and information to the Author here
http://www.codeproject.com/KB/audio-video/karaokedotnet.aspx

written in Vb.NET with Bass and BassFx
Author Ron Schuler

greets

this is a sentence taken directly from that link you posted:

"One thing led to another, and I started porting over some C++ code that I found on Google Code."
Logged
fishbox
Posts: 13


« Reply #42 on: 19 Jan '11 - 16:35 »
Reply with quoteQuote

Very interested in this addon. Has it been implemented in BASS .Net yet?

Here's a pretty please with eyelashes batting request for it.

 Cheesy
Logged
radio42
Posts: 4012


« Reply #43 on: 20 Jan '11 - 07:15 »
Reply with quoteQuote

I haven't looked at it now.
But as it is a plugin you should already today be able to use it via "BASS_PluginLoad" - as then there should be no extra code needed.
Logged
ne0ge0
Posts: 24


« Reply #44 on: 20 Jan '11 - 08:46 »
Reply with quoteQuote

How would you call BASS_CDG_SetVideoWindow() in C# if the Bass.Net dll doesn't know about it?

ne0ge0
Logged
radio42
Posts: 4012


« Reply #45 on: 28 Jan '11 - 17:08 »
Reply with quoteQuote

You can download a pre-version of Bass.Net here, which includes support for BASS_CDG:

www.un4seen.com/filez/4/Bass24.Net_pre.zip
Logged
victor
Posts: 112


« Reply #46 on: 9 Feb '11 - 15:58 »
Reply with quoteQuote

when using your user draw demo, while playing a cdg file, the windows task manager shows the GDI object counter constantly rising. After a while this counter gets to 9999 and the application crashes.
Please advise.

PS. the BASS_CDG has disappeared from your site. Is that meaning no further support for BASS_CDG?
Logged
Ionut Cristea
Posts: 1374


« Reply #47 on: 4 Mar '11 - 09:13 »
Reply with quoteQuote

Quote
when using your user draw demo, while playing a cdg file, the windows task manager shows the GDI object counter constantly rising. After a while this counter gets to 9999 and the application crashes.
Please advise.

PS. the BASS_CDG has disappeared from your site. Is that meaning no further support for BASS_CDG?


Please try with this update:

http://surodev.com/downloads/BASS_CDG.zip

-fixed the GDI bug
-fixed some bugs when handling UNICODE windows
-and some improvements

BASS_CDG it will be supported always, it wasn't removed from my website
http://surodev.com/?p=42

Best regards,
Ionut
Logged
fishbox
Posts: 13


« Reply #48 on: 23 May '11 - 19:24 »
Reply with quoteQuote

Does the latest version of BASS .NET have this in release form yet or still pre-release? If the BASS_CDG gets updated, will it require the BASS .NET to be updated as well?

Thanks and still VERY VERY interested in this plug. Thanks for all the hard work guys!
Logged
Ionut Cristea
Posts: 1374


« Reply #49 on: 24 May '11 - 05:58 »
Reply with quoteQuote

  As far as i know BASS.NET have the latest BASS_CDG. And yes, if i will update the BASS_CDG(change/add new functions), the BASS.NET will have to be updated too.
Logged
fishbox
Posts: 13


« Reply #50 on: 26 May '11 - 17:22 »
Reply with quoteQuote

Thank you, Sharky08.

I will be implementing this in my project soon. I have two questions:

1. On the original karaokedotnet Code Project, some one wrote a message about adding a sync adjustment in case lyrics and music are offset incorrectly

From Code Project:
Quote
hanks for the reply.
 
I figured it out yesterday . . easier than I thought.
 
Real time CDG Timing . . . .
 
On the player form -
place a new label and name it lblTiming
place a new numericupdowncontrol and name it nudTiming

change the following line -
 
mCDGFile.renderAtPosition(pos)
 
to
 
mCDGFile.renderAtPosition(pos - (nudTiming.Value * 100)) 'change 1/10 of a second each value
 
simply subtract the nudTiming value from the current mCDGFile.renderAtPosition(pos) value
 
Now . . on to figuring out real time pitch change without using the Bass dll

Can this be done easily in your implementation of the project? I imagine it would require another .NET exposed setting for "nudTiming" if it were to be used in BASS .NET. It would be very useful!

2. Can you skip to a different part of the karaoke song while it's playing and still have audio lyric sync?

Thank You!
Logged
fishbox
Posts: 13


« Reply #51 on: 1 Jun '11 - 20:32 »
Reply with quoteQuote

Oh yeah, Can I run two windows (one on main app page, one on second screen full size) showing same lyrics of the same song in sync? Using a different plugin, I had lockup and slow scroll issues with that. Thank you!
Logged
Ionut Cristea
Posts: 1374


« Reply #52 on: 2 Jun '11 - 06:27 »
Reply with quoteQuote

  Yes you can, but only on user draw mode. You just get current playback Bitmap and draw that bitmap on how many windows you wish.

Regards,
Ionut
Logged
Ionut Cristea
Posts: 1374


« Reply #53 on: 25 Jun '11 - 21:21 »
Reply with quoteQuote

  A little update to BASS_CDG  Grin

+ Video rendering is done with Directdraw7(better performance)
+ Some A/V sync issues fixed


Check first post for download link.


Best regards,
Ionut
Logged
Thomas Bernhed
Guest
« Reply #54 on: 19 Aug '11 - 20:28 »
Reply with quoteQuote

I downloaded the latest version of BASS_CDG, but I canīt get the "Demo C++.exe" to show the lyrics. The music is playing without problems. The "Demo.exe" both plays the music and shows the lyrics correct.

Do I need to add any other files for the c++ example to work or am I doing something wrong?

Thanks in advance.

//Thomas
Logged
Ionut Cristea
Posts: 1374


« Reply #55 on: 19 Aug '11 - 21:18 »
Reply with quoteQuote

Sorry for inconvenience, the C++ demo wasn't updated with the latest BASS_CDG version. You may check the Delphi version until i update the package.
Logged
Ionut Cristea
Posts: 1374


« Reply #56 on: 12 Nov '11 - 22:06 »
Reply with quoteQuote

  BASS_CDG package updated. Fixed some bugs Cheesy

http://surodev.com/downloads/BASS_CDG.zip
Logged
mkmr
Posts: 3


« Reply #57 on: 21 Sep '12 - 16:37 »
Reply with quoteQuote

Can someone re-upload it, i have been searching for a few hrs (google/here) and every single link is dead. I really want to test this plugin.
Logged
gingermagician7
Posts: 2


« Reply #58 on: 22 Sep '12 - 22:01 »
Reply with quoteQuote

Can someone re-upload it, i have been searching for a few hrs (google/here) and every single link is dead. I really want to test this plugin.

I had a problem with this where the Plugin is holding the CDG file open until you close your application. I contacted the developer and I believe that he is bringing out a new version that will run under DShow/xVideo plugin.

Unfortunately I don't think I can wait now and I have reverted to code that I wrote a while back that handles the graphic tiles within the CDG file. I am in the process of modifying this into a Delphi class - could be a wee while in the conversion but the original code allowed for time delays in the Lyric

Regards,
Ally
Logged
MrBoo
Posts: 3


« Reply #59 on: 19 Oct '12 - 16:09 »
Reply with quoteQuote

Hello,  I'm new here and I am interested in this add-on.  Will it be continued or has it been incorporated into the direct show.  I've downloaded that and I haven't got it to work as of yet.  I'm used to VB.net and the breakpoints don't work in the demo package on form.cs.  I know, two different issues..  Sorry..  and Thanks!!
Logged
Pages: 1 2 [3] 4  All
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines