#1 Burning Software

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

All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Audio Tracks reordering
PostPosted: Mon Jul 06, 2009 12:46 am 
Offline

Joined: Mon Jul 06, 2009 12:38 am
Posts: 9
Hi,

I've been trying AudioBurner sample (VS2005, C#) and I see that your IAudioTrack interface doesn't support audio track reorder,
nor you AudioBurner class has Insert ability (i.e. to insert a track at a specified position).

I want to be able to reorder audio tracks (after the user had inserted them into audioburner app) - is this at all possible?
Or at least, to use some kind of hack, to remove the track from the track list and reinsert it at a specified position, using
the AudioBurning class?

Thnaks,
Goran.


Top
 Profile  
 
 Post subject: Re: Audio Tracks reordering
PostPosted: Mon Jul 06, 2009 7:32 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Keep your own list of tracks and pass it to our class only when you're done with the editing and is 100% sure what you have is what you want to burn.


Top
 Profile  
 
 Post subject: Re: Audio Tracks reordering
PostPosted: Mon Jul 06, 2009 9:38 am 
Offline

Joined: Mon Jul 06, 2009 12:38 am
Posts: 9
Hmm, I was afraid that the answer will be in this context. You see the problem with this solution will be
that I'll have to also analyze the input audio tracks (be that wav or mp3 or wma) so that I can keep track
of the audio compilation length. Then, when I set them to you audioburner object, audio track analyzing
will occur again - which will be redundant (at least for the header parsing part).

I was kind of hoping that there is some undocumented method for reordering, but there never is...

Thanks anyway,
Goran.


Top
 Profile  
 
 Post subject: Re: Audio Tracks reordering
PostPosted: Mon Jul 06, 2009 9:41 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
There's no way to get MP3 file length duration w/o playing file quickly. So any add-remove will require us to get length again (it's not cached).


Top
 Profile  
 
 Post subject: Re: Audio Tracks reordering
PostPosted: Mon Jul 06, 2009 9:54 am 
Offline

Joined: Mon Jul 06, 2009 12:38 am
Posts: 9
anton (staff) wrote:
There's no way to get MP3 file length duration w/o playing file quickly. So any add-remove will require us to get length again (it's not cached).

But why would this need to happen when reordering? You have already determined the track length and have that information in your struct.


Top
 Profile  
 
 Post subject: Re: Audio Tracks reordering
PostPosted: Tue Jul 07, 2009 2:08 pm 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
ambrozija wrote:
anton (staff) wrote:
There's no way to get MP3 file length duration w/o playing file quickly. So any add-remove will require us to get length again (it's not cached).

But why would this need to happen when reordering? You have already determined the track length and have that information in your struct.


It's connected with StarBurn SDK core realization and can't be changed now.
But we can add method for approximate length detection of compressed file formats - this detection much faster, but can have inaccuracy in few seconds of total file length.
This faster method can be used on adding files state, but on burning state will be used accurate method which take more time :(


Top
 Profile  
 
 Post subject: Re: Audio Tracks reordering
PostPosted: Wed Jul 08, 2009 6:10 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
I don't think track re-ordering has anything to do with StarBurn core (MP3 file length duration does indeed!). It's purely StarBurnX wrapper issue. Dima, would you please take a look? Thanks!


Top
 Profile  
 
 Post subject: Re: Audio Tracks reordering
PostPosted: Thu Jul 09, 2009 11:07 am 
Offline

Joined: Mon Jul 06, 2009 12:38 am
Posts: 9
anton (staff) wrote:
I don't think track re-ordering has anything to do with StarBurn core (MP3 file length duration does indeed!). It's purely StarBurnX wrapper issue.

OK, that's what I thought too. It's probably just question of reordering it in some list and adding the appropriate method to the IDL.

Anyway, I already made a solution where I hold my own list of audio tracks and get their length with my own methods (yeah, with mp3's I'm off to sec or two - especially on VBR - but this isn't such a big issue on the current project that I'm working on).

Thanks,
Goran.


Top
 Profile  
 
 Post subject: Re: Audio Tracks reordering
PostPosted: Thu Jul 09, 2009 11:19 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
You need accurate times to compile SAO or DAO cue sheets. That's the problem. "More or less" does not work here.


Top
 Profile  
 
 Post subject: Re: Audio Tracks reordering
PostPosted: Thu Jul 09, 2009 8:26 pm 
Offline

Joined: Mon Jul 06, 2009 12:38 am
Posts: 9
anton (staff) wrote:
You need accurate times to compile SAO or DAO cue sheets. That's the problem. "More or less" does not work here.

No, that's not the problem. At least I don't have that problem. The problem is not providing a perfectly regular, expected, standard function for reordering tracks after they are added in the list!

P.S.
Was my post from earlier today deleted?!?

Regards,
Goran.


Top
 Profile  
 
 Post subject: Re: Audio Tracks reordering
PostPosted: Thu Jul 09, 2009 8:43 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
1) Dima is working on track re-ordering thing. Should be ready soon. You've pointed at the right thing!

2) Yes, your post was deleted. It did not bring any value and had some bad language. This is moderated forum.


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

All times are UTC


Who is online

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