#1 Burning Software

It is currently Mon Dec 30, 2024 5:13 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: DVD Padding Progress
PostPosted: Tue Jan 10, 2006 10:40 pm 
Offline

Joined: Fri Jan 28, 2005 7:13 pm
Posts: 11
Can we get a callback for the dvd media padding progress? As it stands now I have no way to update a UI during this phase. All I can do is say "this might take a long time" :)

Thanks,

Michael


Top
 Profile  
 
 Post subject: Re: DVD Padding Progress
PostPosted: Wed Jan 11, 2006 9:57 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Unfortunately not yet... I'll add padding callback progress to the next StarBurn release however. Drop me a message to anton@rocketdivision.com so we'll arrange how you'd take part in beta fest :)

pipelogix wrote:
Can we get a callback for the dvd media padding progress? As it stands now I have no way to update a UI during this phase. All I can do is say "this might take a long time" :)

Thanks,

Michael


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 05, 2006 3:27 pm 
Offline

Joined: Fri Oct 14, 2005 10:00 am
Posts: 24
I use the Version 2006.10.04 (with Delphi). There are now callback numbers dealing with padding. But I don't find any examples for CN_DVD_MEDIA_PADDING_WRITE_PROGRESS

I tried to use the same code as used for CN_CDVD_WRITE_PROGRESS, but the returned percent value is not correct:

Code:
  case ACALLBACK_NUMBER of
    [...]
    CN_DVD_MEDIA_PADDING_WRITE_PROGRESS: begin
      // Get parameters passed with callback
      FFileSizeInLBs := PInt64(ACallbackSpecial1)^;
      FLBsWritten.QuadPart := PInt64(ACallbackSpecial2)^;

      // Calculate number of percent written
      FCurrentPercent.QuadPart :=
        ((FLBsWritten.QuadPart * 100) Div FFileSizeInLBs);

      // Check if current calculated was already written
      if FCurrentPercent.QuadPart <> g__LARGE_INTEGER__LastWrittenPercent.QuadPart then
      begin
        // Update last written percent with current value
        g__LARGE_INTEGER__LastWrittenPercent.QuadPart := FCurrentPercent.QuadPart;

        // This percent to event
        CallBackEventer.DoWriteProgress(g__LARGE_INTEGER__LastWrittenPercent.QuadPart);
      end;
    end;
    [...]
  end; // case


What format do the parameters for that callback have?

Thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 05, 2006 6:28 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Look at the TrackAtOnceFromFile C sample.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 08, 2006 8:40 am 
Offline

Joined: Fri Oct 14, 2005 10:00 am
Posts: 24
Thanks, I thought I searched the C samples too...but it doesn't seem so.

For completeness the working delphi code:
Code:
l__ULONG__TrackPaddingSizeInLBs := PCardinal(ACallbackSpecial1)^;
l__ULONG__TrackPaddingLeftInLBs := PCardinal(ACallbackSpecial2)^;

l__ULONG__PaddingProgressPercent := 100 - (l__ULONG__TrackPaddingLeftInLBs * 100) div l__ULONG__TrackPaddingSizeInLBs;


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 08, 2006 8:47 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Thank you :)

stebi wrote:
Thanks, I thought I searched the C samples too...but it doesn't seem so.

For completeness the working delphi code:
Code:
l__ULONG__TrackPaddingSizeInLBs := PCardinal(ACallbackSpecial1)^;
l__ULONG__TrackPaddingLeftInLBs := PCardinal(ACallbackSpecial2)^;

l__ULONG__PaddingProgressPercent := 100 - (l__ULONG__TrackPaddingLeftInLBs * 100) div l__ULONG__TrackPaddingSizeInLBs;


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 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