#1 Burning Software

It is currently Fri Mar 29, 2024 8:37 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: multitrack DiscAtOnceRawPWFromFile
PostPosted: Thu Jul 03, 2008 10:20 am 
Offline

Joined: Mon May 26, 2008 9:24 am
Posts: 4
Hello to all,

I'm using SturBurn SDK with C#.
When I call StarBurn_CdvdBurnerGrabber_DiscAtOnceRawPWFromFile function with more then one DAO_DISC_LAYOUT_ENTRY,
application throws System.NullReferenceException.
With only one entry it works fine.

This is my C# code

Code:
DAO_DISC_LAYOUT DAODiscLayout = new DAO_DISC_LAYOUT();
DAODiscLayout.NumberOfEntries=2;
const int DAO_DISC_LAYOUT_ENTRY_SIZE=275;
DAODiscLayout.DAODiscLayoutEntries = new byte[100*DAO_DISC_LAYOUT_ENTRY_SIZE];

DAO_DISC_LAYOUT_ENTRY layoutEntry = new DAO_DISC_LAYOUT_ENTRY();
layoutEntry.TrackName= @"C:\Visual Studio Projects\song1.bin";
IntPtr ptr_layoutEntry = Marshal.AllocCoTaskMem(Marshal.SizeOf(layoutEntry));
Marshal.StructureToPtr(layoutEntry, ptr_layoutEntry, false);
Marshal.Copy(ptr_layoutEntry, DAODiscLayout.DAODiscLayoutEntries, 0, DAO_DISC_LAYOUT_ENTRY_SIZE);

DAO_DISC_LAYOUT_ENTRY layoutEntry2 = new DAO_DISC_LAYOUT_ENTRY();
layoutEntry2.TrackName= @"C:\Visual Studio Projects\song2.bin";
IntPtr ptr_layoutEntry2 = Marshal.AllocCoTaskMem(Marshal.SizeOf(layoutEntry2));
Marshal.StructureToPtr(layoutEntry2, ptr_layoutEntry2, false);
Marshal.Copy(ptr_layoutEntry2, DAODiscLayout.DAODiscLayoutEntries, DAO_DISC_LAYOUT_ENTRY_SIZE, DAO_DISC_LAYOUT_ENTRY_SIZE);

try
{
    StarBurn_CdvdBurnerGrabber_DiscAtOnceRawPWFromFile(
        g_SelectedDevice.CdvdBurnerGrabber,
        l_ExceptionText,
        EXCEPTION_TEXT_SIZE,
        out l_SystemError,
        out l_CDBFailureInfo,
        ref DAODiscLayout,0,0,0,0,
        WRITE_REPORT_DELAY_IN_SECONDS,
        BUFFER_STATUS_REPORT_DELAY_IN_SECONDS
        );
}
catch(Exception e)
{}


What's wrong?
Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 03, 2008 3:28 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Outstanding. Now please provide us with the StarBurn log.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 04, 2008 1:34 pm 
Offline

Joined: Mon May 26, 2008 9:24 am
Posts: 4
This is the StarBurn log.
Thanks for your help.

Quote:
StarBurn CD/DVD/Blu-Ray/HD-DVD Burning, Grabbing and Mastering Toolkit for Windows 95/98/Me/NT/2000/XP/2003/Vista/Longhorn Version 7.2.20 ( 0x20070220 )
Copyright (c) Rocket Division Software 2001-2006. All rights reserved.

SCSI Port Inquiry Dump:
SCSI ID: 7, Manager 'ROCKET', Identifier 'Port 001'
Residual Count Supported: Yes, Number of SCSI Target(s) Supported: 15
Single Transfer Size: 65536 UCHARs


CStarBurn_ScsiTransportASPI::CStarBurn_ScsiTrasportASPI(): Symbolic name is '\\.\F:'

SCSI Device Inquiry Data Dump:
Device Type: 0x05, Removable: Yes
SCSI Version: 0, Soft Reset Supported: No
Command Queue Supported: No, Linked Commands Supported: No
Sync Transfer Supported: No, 16-bit bus: No
32-bit bus: No, Relative Addressing Supported: No
Vendor ID: 'TSSTcorp', Product ID: 'CD/DVDW SH-S183A', Revision Level: 'SB00'


CStarBurn_ScsiDeviceGeneric::CStarBurn_ScsiDeviceGeneric_SharedConstructor(): 'TSSTcorp' - 'CD/DVDW SH-S183A' - 'SB00' sits at 1:0:1:0

CD/DVD Capabilities Page Dump:
Page Code: 0x2A, Reserved1: 0x00, PSBit (Page Savable): 0
Page Size in UCHARs: 66 UCHARs, CD-R Read: Yes, CD-E Read: Yes
DVD-ROM Read: Yes, DVD-R Read: Yes, DVD-RAM Read: Yes, Reserved2: 0x00
CD-R Write: Yes, CD-E Write: Yes, Test Write: Yes
Reserved3: 0x00, DVD-R Write: Yes, DVD-RAM Write: Yes
Reserved4: 0x00, Audio Play: Yes, Composite: No
Digital Port One: No, Digital Port Two: No
MODE2 Form1: Yes, MODE2 Form2: Yes
Is Multi Session: Yes, CDDA: Yes, CDDAAccurate: Yes
BUP (Buffer Underrun Protection) Supported: Yes
RW Supported: Yes, RW Deinterleaved: No, C2Pointers: Yes
ISRC: Yes, UPC: Yes, Read Bar Code Capable: No
Lock: Yes, LockState: 0, Prevent Jumper: No
Reserved5: 0x00, Eject: Yes, Loading Mechanism Type: 0x01
Separate Volume: Yes, Separate Channel Mute: Yes
Supports Disc Present: No, SW Slot Selection: No
Side Change Capable: No, RW InLeadIn Readable: Yes, Reserved6: 0x00
Maximum Read Speed: 7056 KBps
Number Of Volume Level(s): 256, Buffer Size in KBs: 2048
Current Read Speed: 7056 KBps
Reserved7: 0x00
BCK: No, RCK: No, LSBF: No, Length: 0x01
Reserved8: 0x00
Maximum Write Speed: 706 KBps
Current Write Speed: 706 KBps
Reserved9: 0x0001


CStarBurn_CdvdBurnerGrabber::CStarBurn_CdvdBurnerGrabber_SharedConstructor(): Cache size is 0 MBs, 167772160 UCHARs

CStarBurn_CdvdBurnerGrabber::GetBUP(): ENTERed for 0x03AAFB80, 0x03AAFB7C

CStarBurn_CdvdBurnerGrabber::GetBUP(): Probing for JustLink style protection...

CStarBurn_CdvdBurnerGrabber::GetBUP(): [ 1 ] Supported bit: 1

CStarBurn_CdvdBurnerGrabber::GetBUP(): [ 1 ] Enabled bit: 1

CStarBurn_CdvdBurnerGrabber::GetBUP(): JustLink buffer underrun protection, supported status 1, enabled status 1

CStarBurn_CdvdBurnerGrabber::GetBUP(): Probing for BURN-Proof style protection...

CStarBurn_CdvdBurnerGrabber::GetBUP(): [ 2 ] Supported bit: 1

CStarBurn_CdvdBurnerGrabber::GetBUP(): [ 2 ] Enabled bit: 1

CStarBurn_CdvdBurnerGrabber::GetBUP(): BURN-Proof buffer underrun protection, supported status 1, enabled status 1

CStarBurn_CdvdBurnerGrabber::GetBUP(): EXITing with success, supported: Yes, enabled: Yes

CStarBurn_CdvdBurnerGrabber::SetBUP(): ENTERed for 1

CStarBurn_CdvdBurnerGrabber::SetBUP(): Enabling JustLink style protection...

CStarBurn_CdvdBurnerGrabber::SetBUP(): [ 1 ] Enabled bit: 1

CStarBurn_CdvdBurnerGrabber::SetBUP(): JustLink buffer underrun protection, enabled status 1

CStarBurn_CdvdBurnerGrabber::SetBUP(): Enabling BURN-Proof style protection...

CStarBurn_CdvdBurnerGrabber::SetBUP(): [ 2 ] Enabled bit: 1

CStarBurn_CdvdBurnerGrabber::SetBUP(): BURN-Proof buffer underrun protection, enabled status 1

CStarBurn_CdvdBurnerGrabber::SetBUP(): EXITing with success, enabled: Yes

CStarBurn_CdvdBurnerGrabber::SetCdvdSpeeds(): ENTERed for 65535, 706

CStarBurn_CdvdBurnerGrabber::SetCdvdSpeeds(): Setting speeds for CD ( 3 )

CStarBurn_CdvdBurnerGrabber::SetCdvdSpeeds(): EXITing with success

StarBurn:StarBurn_IsAudioFileSupported(): EXITing with success, .BIN extension detected

StarBurn:StarBurn_IsAudioFileSupported(): ENTERed for '', probing for supported uncompressed...

StarBurn:StarBurn_IsAudioFileSupported(): WARNING! Unrecognized as supported uncompressed, status 3 ( 0x3 ), probing for supported compressed...

StarBurn:StarBurn_IsAudioFileSupported(): EXITing with failure, unrecognized as supported compressed, status -2147024894 ( 0x80070002 )

StarBurn:StarBurn_CdvdBurnerGrabber_DiscAtOnceRawPWFromFile(): Audio track is present already, invalid mixed mode or multisession is not supported yet!!!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 04, 2008 6:53 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
That's the answer. BIN was not recognized as audio track.

---

StarBurn:StarBurn_IsAudioFileSupported(): WARNING! Unrecognized as supported uncompressed, status 3 ( 0x3 ), probing for supported compressed...

StarBurn:StarBurn_IsAudioFileSupported(): EXITing with failure, unrecognized as supported compressed, status -2147024894 ( 0x80070002 )


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

All times are UTC


Who is online

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