Go Back   Club CDFreaks - Knowledge is Power > International Chat: Software related > Nero SDK Discussion Forum


Commercial message



Nero SDK Discussion Forum Discuss, how to use NeroCDInfo? at International Chat: Software related forum; I want to get information about cd capacity and any other information about cd. I understand that I should read that data from NeroCDInfo object which will be provided by the OnDoneCDInfo event when I calling CDInfo method, but I don’t know how to implement it. Can anybody show


Reply
 
Thread Tools
Old 10-04-2005   #1 (permalink)
CD Freaks Junior Member
 
Join Date: Mar 2005
Posts: 55
how to use NeroCDInfo?

I want to get information about cd capacity and any other information about cd.
I understand that I should read that data from NeroCDInfo object which will be provided by the OnDoneCDInfo event when I calling CDInfo method, but I don’t know how to implement it. Can anybody show me how to implement it? (when I’m implementing it – OnDoneCDInfo event never occur)
I'm working with C#
yoss05 is offline   Reply With Quote
Old 10-04-2005   #2 (permalink)
CD Freaks Junior Member
 
Join Date: Mar 2005
Posts: 55
Re: how to use NeroCDInfo?

I found out that OnDoneCDInfo event occurs only after calling “BurnIsoAudioCD” method. What should I do to get information about CD before calling to “BurnIsoAudioCD” method (for example – I would like to know CD’s free space and it will help me to decide which file I’ll send to burn, big one or small one)
yoss05 is offline   Reply With Quote
Old 11-04-2005   #3 (permalink)
CD Freaks Member
 
Join Date: Dec 2003
Location: uk
Posts: 234
Re: how to use NeroCDInfo?

The OnDoneCDInfo event occurs following a CDInfo call.

The BurnIsoAudioCD call is associated with the OnDoneBurn event.

Mike
unison is offline   Reply With Quote
Old 11-04-2005   #4 (permalink)
CD Freaks Junior Member
 
Join Date: Mar 2005
Posts: 55
Re: how to use NeroCDInfo?

hi Mike

I'm working with C#. I'll show you what i done:


private void GetCdInfo(NeroCDInfo cdInfo)
{
Console.WriteLine(" GetCdInfo ");
Console.WriteLine(cdInfo.UnusedBlocks);
}


private NeroDrive drive;
.
.
.
drive.OnDoneCDInfo += new _INeroDriveEvents_OnDoneCDInfoEventHandler(GetCdInfo);
.
.
drive.CDInfo(NERO_CDINFO_FLAGS.NERO_READ_CD_TEXT);
.
.
drive.BurnIsoAudioCD("", "", false, isoTrack, null, null, NEROLib.NERO_BURN_FLAGS.NERO_BURN_FLAG_WRITE, 3, NEROLib.NERO_MEDIA_TYPE.NERO_MEDIA_CD);

I'm getting into GetCdInfo method not after "drive.CDInfo(.....)" but after "drive.BurnIsoAudioCD(......)".
but i want to get media's info before activating "drive.BurnIsoAudioCD(.....)"
yoss05 is offline   Reply With Quote
Old 11-04-2005   #5 (permalink)
CD Freaks Junior Member
 
Join Date: Jan 2005
Posts: 73
Re: how to use NeroCDInfo?

The events don't fire imidietly.
What I do is i implement like this

while(boolOnDoneCDInfo==false)
{
application.doEvents(); // it forces evets to fire imidietly
thread.sleep(1000);
}

........

OnDoneCDInfo(....)
{
boolOnDoneCDInfo=true;
}
gapilazo is offline   Reply With Quote
Old 11-04-2005   #6 (permalink)
CD Freaks Junior Member
 
Join Date: Mar 2005
Posts: 55
Re: how to use NeroCDInfo?

cool "gapilazo "

I'm working in console application and i done

while(!flag) // forcing event
{
Thread.Sleep(1000);
}

"boolOnDoneCDInfo" is your boolean (not system's), isn't it?
yoss05 is offline   Reply With Quote
Old 11-04-2005   #7 (permalink)
CD Freaks Junior Member
 
Join Date: Jan 2005
Posts: 73
Re: how to use NeroCDInfo?

yes
gapilazo is offline   Reply With Quote
Old 11-04-2005   #8 (permalink)
CD Freaks Junior Member
 
Join Date: Mar 2005
Posts: 55
Re: how to use NeroCDInfo?

by the way, i saw that "NeroCDInfo" gives me information about unused blocks.

what is the block size in bytes? (to know what is the biggest file i can burn into media)
yoss05 is offline   Reply With Quote
Old 11-04-2005   #9 (permalink)
CD Freaks Rookie
 
Join Date: May 2004
Posts: 43
Re: how to use NeroCDInfo?

block size depends on disktype

data cd -> 2048 Byte/block
audio cd -> 2352 Byte/block

(see also chapter 7.1.48 on page 72 in NeroAPI6.3.1.4.pdf)

Michael
__________________
some of my other unsolved NeroSDK problems:
SVCD plugin detection: http://club.cdfreaks.com/showthread.php?t=131226
Multisession time problem: http://club.cdfreaks.com/showthread.php?t=132537
May be someone can also help me with that problems.
michael2 is offline   Reply With Quote
 
Reply


If you can't find where you are looking for, then become a member and get an answer fast! We have thousands of people online every moment of the day to help you! Click here



Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Title property of NeroCDInfo is always empty KMAT Nero SDK Discussion Forum 1 03-01-2004 11:48


All times are GMT +2. The time now is 15:45.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0