#1 Burning Software

It is currently Thu Dec 19, 2024 8:07 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: How do I burn Audio CD using the OCX?
PostPosted: Wed Jul 05, 2006 3:58 am 
Offline

Joined: Thu May 25, 2006 3:00 am
Posts: 5
Ive tried doing :
Device.TrackAtOnceFromFile("c:\\audio\\1.wav",false,true);

-Where I assume 1.wav is just in PCM format-

And that doesnt work.

Do I use CDAOLayout class? - i think this isn't implemented.

Or How else should I use the OCX?

Thanks

Alfred


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 05, 2006 3:59 am 
Offline

Joined: Thu May 25, 2006 3:00 am
Posts: 5
Oh forgot to mention - im using C#


Top
 Profile  
 
 Post subject: Re: How do I burn Audio CD using the OCX?
PostPosted: Wed Jul 05, 2006 11:04 pm 
Offline

Joined: Wed Jan 04, 2006 1:02 am
Posts: 22
alfred wrote:
Ive tried doing :
Device.TrackAtOnceFromFile("c:\\audio\\1.wav",false,true);

-Where I assume 1.wav is just in PCM format-

And that doesnt work.

Do I use CDAOLayout class? - i think this isn't implemented.

Or How else should I use the OCX?

Thanks

Alfred



You are right. The code is ok.
I have the same code working:
Code:
{
   Device.TestUnitReady();      
   Device.SetSpeeds(               
      0xFFFF,                 
      0xFFFF                 
      );

   Device.TrackAtOnceFromFile("c:\\audio\\1.wav",false,true);
   Device.TrackAtOnceFromFile("c:\\audio\\2.wav",false,true);
   Device.TrackAtOnceFromFile("c:\\audio\\3.wav",false,true);

   Device.CloseSession();
   Device.Eject();       
   WScript.echo('Finished');


For details I need logs from you. But may be you does not close session?
Or try another file (mp3 for example) to verify may be the file is wrong.

Regards.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 06, 2006 3:01 am 
Offline

Joined: Thu May 25, 2006 3:00 am
Posts: 5
I get an error even when I use that javascript code you have.

Both your code in your response and the file AudioWrite.js are the same.

I proceeded to use the file AudioWrite.js - obviously changing the audio file names.

The CD it produces is not recognised by windows. When I try to click the drive in explorer I get an error:
"Windows cannot read from this disk. The disk might be corrupted, or it could be using a format that is not compatible with Windows."

My car player says I have one track but plays nothing. My DVD player thinks its a VCD but obviously does not play it.

Considering I am using the javascript file that came with the SDK I am not sure where to find these log files you are refering to.



Please help as this is currently my stumbling block to purchasing this library (I am only intrested in the OCX interface as the C++ interface is WAAAYYY too complicated and I do not wish to get a degree in CD burning :) )


Thanks

Alfred


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 06, 2006 11:57 am 
Offline

Joined: Wed Jan 04, 2006 1:02 am
Posts: 22
alfred wrote:
I get an error even when I use that javascript code you have.


Please, send me the log from DebugView (http://www.sysinternals.com/)
by mail : oleksiy.popov @ rocketdivision.com.


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

All times are UTC


Who is online

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