#1 Burning Software

It is currently Thu Dec 19, 2024 9:17 am

All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Total progress during burn?
PostPosted: Sat Sep 15, 2007 9:07 pm 
Offline

Joined: Sat Sep 15, 2007 3:54 pm
Posts: 65
Hello,

Since I'm still new to StarBurn I had to ask a question I have not yet found a answer for;

I'm using Delphi to create a application that burns Audio Discs.
To display a progress while burning, I'm using CallBackEventer.OnWriteProgress, just as in the example.

The only problem with this callback is that it seems to executed for each file (so if I will burn three files, the progress will go from 0-100 three times).

Is it possible to either:
1) Use some other callback that reports the overall process?
2) Retreive somehow which file that StarBurn currently is processing, either as a string (so I can lookup the file in my burnlist) or as a integer (index in list)?


Thanks in advance!


Top
 Profile  
 
 Post subject: Re: Total progress during burn?
PostPosted: Mon Sep 17, 2007 7:26 am 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
Stojo303 wrote:
Hello,

Since I'm still new to StarBurn I had to ask a question I have not yet found a answer for;

I'm using Delphi to create a application that burns Audio Discs.
To display a progress while burning, I'm using CallBackEventer.OnWriteProgress, just as in the example.

The only problem with this callback is that it seems to executed for each file (so if I will burn three files, the progress will go from 0-100 three times).

Is it possible to either:
1) Use some other callback that reports the overall process?
2) Retreive somehow which file that StarBurn currently is processing, either as a string (so I can lookup the file in my burnlist) or as a integer (index in list)?


Thanks in advance!


Hello,

What write mode(Disc-At-Once, Session-At-
Once, Tack-At-Once) you use ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 17, 2007 7:34 am 
Offline

Joined: Sat Sep 15, 2007 3:54 pm
Posts: 65
Quote:
Hello,

What write mode(Disc-At-Once, Session-At-
Once, Tack-At-Once) you use ?


Good morning,

I'm currently using "Track At Once", but I plan to allow the users to select "Disc At Once" and "Session At Once" also. (Just as in the Audio Burner Delphi demo, shown in ufrmBurnMode.pas).

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 17, 2007 7:39 am 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
Stojo303 wrote:
Quote:
Hello,

What write mode(Disc-At-Once, Session-At-
Once, Tack-At-Once) you use ?


Good morning,

I'm currently using "Track At Once", but I plan to allow the users to select "Disc At Once" and "Session At Once" also. (Just as in the Audio Burner Delphi demo, shown in ufrmBurnMode.pas).

Thanks!


Ok. And you have individual progress for each burning file, or you have one common progress for all burning data?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 17, 2007 7:44 am 
Offline

Joined: Sat Sep 15, 2007 3:54 pm
Posts: 65
Quote:
Ok. And you have individual progress for each burning file, or you have one common progress for all burning data?


When using "Track At Once", I'm currently having a progress for each individual file.
That's good, but I would also like to display a overall progress for all files.

I'm currently using:
Code:
    CallBackEventer.OnWriteProgress := WriteProgressHandler;

    ...

procedure TAudioCDWizardProgressFrame.WriteProgressHandler(Sender: TObject;
  const APercent: Integer);
var
  FPercent: Integer;
begin
  if (APercent <= 100) then
    FPercent := APercent
  else
    FPercent := 100;
  ProgressBar.Position := FPercent;
  Application.ProcessMessages;
end;



to handle the progressbar output.


Please let me know if you need more details.

Thanks in advance, Mikael


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 17, 2007 8:42 am 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
Ok, understand.
You use StarBurn.dll or StarBurn OCX library?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 17, 2007 9:11 am 
Offline

Joined: Sat Sep 15, 2007 3:54 pm
Posts: 65
Quote:
You use StarBurn.dll or StarBurn OCX library?


I use StarBurn.dll together with StarBurn.pas, sbClasses.pas, sbTypes.pas etc.

Regards, Mikael


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 17, 2007 10:04 am 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
If I currently right, you write audio disc by StarBurn_CdvdBurnerGrabber_TrackAtOnceFromFile() using.
You can init array of file duration before burning and "manually" calculate total progress by using progress of current track.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 17, 2007 11:01 am 
Offline

Joined: Sat Sep 15, 2007 3:54 pm
Posts: 65
Quote:
If I currently right, you write audio disc by StarBurn_CdvdBurnerGrabber_TrackAtOnceFromFile() using.
You can init array of file duration before burning and "manually" calculate total progress by using progress of current track.


Ok, thanks, I will try that (although it feels a bit manual :) ).
Can the same technique be applied to "Disk At Once" and "Session At Once burning" or will the callback work properly in these cases?

Thanks once again, Mikael.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 17, 2007 12:26 pm 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
Stojo303 wrote:
Quote:
If I currently right, you write audio disc by StarBurn_CdvdBurnerGrabber_TrackAtOnceFromFile() using.
You can init array of file duration before burning and "manually" calculate total progress by using progress of current track.


Ok, thanks, I will try that (although it feels a bit manual :) ).
Can the same technique be applied to "Disk At Once" and "Session At Once burning" or will the callback work properly in these cases?

Thanks once again, Mikael.


DAO and SAO callbacks return common percent for all burning data.

Good look in creation :)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 17, 2007 1:01 pm 
Offline

Joined: Sat Sep 15, 2007 3:54 pm
Posts: 65
Quote:
Good look in creation Smile


Thanks, and thanks for the great support!

Regards, Mikael


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 17, 2007 1:15 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
You're welcomed :)

Stojo303 wrote:
Quote:
Good look in creation Smile


Thanks, and thanks for the great support!

Regards, Mikael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group