#1 Burning Software

It is currently Wed Dec 18, 2024 11:00 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Burning audio track from pipe
PostPosted: Tue May 10, 2005 8:32 pm 
Offline

Joined: Tue May 10, 2005 8:17 pm
Posts: 1
Location: Aachen, Germany
Hello,

I need to burn an audio track from data located in a pipe.
I'm using delphi and i called the function TrackAtOnceFromPipe, but always a data track is created. I have tried wav and mp3 files.

When i use TrackAtOnceFromFile everything works fine.

The help says that a sound file can be burned with TrackAtOnceFromPipe.

Please help me, what am I doing wrong? My code looks like this:

Code:
        // create pipe
        FillChar ( SecurityAttr , SizeOf ( TSecurityAttributes ) , 0 ) ;
        SecurityAttr . nLength := SizeOf ( SecurityAttr ) ;
        SecurityAttr . bInheritHandle := true ;
        SecurityAttr . lpSecurityDescriptor := nil ;
        CreatePipe ( HRead , HWrite , @SecurityAttr , cBufferSize ) ;

        // read data from file into buffer
        Assign ( F , 'C:\test.mp3' ) ;
        Reset ( F , 1 ) ;
        DataSize := FileSize ( F ) ;
        SetLength ( DataBuffer , DataSize ) ;
        BlockRead ( F , DataBuffer [ 0 ] , DataSize ) ;
        Close ( F ) ;

        // write buffer to pipe
        WriteFile ( HWrite , DataBuffer [ 0 ] , DataSize , a , nil ) ;

        // burn track
        l__EXCEPTION_NUMBER :=
            StarBurn_CdvdBurnerGrabber_TrackAtOnceFromPipe(
                l__PVOID__CdvdBurnerGrabber,
                PCHAR( @l__CHAR__ExceptionText[1] ),
                sizeof( l__CHAR__ExceptionText ),
                l__ULONG__Status,
                @l__CDB_FAILURE_INFORMATION,
                HRead,
                DataSize,
                FALSE ,
                l__BOOLEAN__IsTestWrite,
                TRUE,
                WRITE_REPORT_DELAY_IN_SECONDS,
                BUFFER_STATUS_REPORT_DELAY_IN_SECONDS
                );


Greetings,
Sven


Top
 Profile  
 
 Post subject: Re: Burning audio track from pipe
PostPosted: Tue May 10, 2005 9:59 pm 
Offline
Site Admin

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

you're doing everything correctly, pipe code just does not support audio tracks. However we have custom project now and these guys *need* to burn audio CD from pipe (and memory). So quite soon (week or two) StarBurn would support this missing functionality.

Thanks!

Sven wrote:
Hello,

I need to burn an audio track from data located in a pipe.
I'm using delphi and i called the function TrackAtOnceFromPipe, but always a data track is created. I have tried wav and mp3 files.

When i use TrackAtOnceFromFile everything works fine.

The help says that a sound file can be burned with TrackAtOnceFromPipe.

Please help me, what am I doing wrong? My code looks like this:

Code:
        // create pipe
        FillChar ( SecurityAttr , SizeOf ( TSecurityAttributes ) , 0 ) ;
        SecurityAttr . nLength := SizeOf ( SecurityAttr ) ;
        SecurityAttr . bInheritHandle := true ;
        SecurityAttr . lpSecurityDescriptor := nil ;
        CreatePipe ( HRead , HWrite , @SecurityAttr , cBufferSize ) ;

        // read data from file into buffer
        Assign ( F , 'C:\test.mp3' ) ;
        Reset ( F , 1 ) ;
        DataSize := FileSize ( F ) ;
        SetLength ( DataBuffer , DataSize ) ;
        BlockRead ( F , DataBuffer [ 0 ] , DataSize ) ;
        Close ( F ) ;

        // write buffer to pipe
        WriteFile ( HWrite , DataBuffer [ 0 ] , DataSize , a , nil ) ;

        // burn track
        l__EXCEPTION_NUMBER :=
            StarBurn_CdvdBurnerGrabber_TrackAtOnceFromPipe(
                l__PVOID__CdvdBurnerGrabber,
                PCHAR( @l__CHAR__ExceptionText[1] ),
                sizeof( l__CHAR__ExceptionText ),
                l__ULONG__Status,
                @l__CDB_FAILURE_INFORMATION,
                HRead,
                DataSize,
                FALSE ,
                l__BOOLEAN__IsTestWrite,
                TRUE,
                WRITE_REPORT_DELAY_IN_SECONDS,
                BUFFER_STATUS_REPORT_DELAY_IN_SECONDS
                );


Greetings,
Sven


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 11, 2005 4:45 am 
Hello,

thank you very much for the fast answer! :)

Sven


Top
  
 
 Post subject:
PostPosted: Wed May 11, 2005 10:09 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
NP! We'll keep you updated :)

Anonymous wrote:
Hello,

thank you very much for the fast answer! :)

Sven


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 03, 2005 4:09 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
OK, we're done with coding of recording audio from pipes. If you're still interested in getting this code - please let us know and you'll get preview version of the SDK (official release is a bit delayed). Thanks!

anton (staff) wrote:
NP! We'll keep you updated :)

Anonymous wrote:
Hello,

thank you very much for the fast answer! :)

Sven


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 57 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group