Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Dec 14, 2018 7:44 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: check if dvd or audio cd is inserted?
PostPosted: Sat Feb 16, 2013 11:09 am 
Offline

Joined: Thu Feb 01, 2007 12:35 pm
Posts: 15
Location: Italy
Hi, i'm making an app to organize DVD and AUDIOCD, is there a way to check in an inserted media is a DVD or a CD audio?

thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: check if dvd or audio cd is inserted?
PostPosted: Sat Feb 16, 2013 1:41 pm 
Offline
User avatar

Joined: Tue Oct 24, 2006 3:38 am
Posts: 148
Location: Ger
Audio CDs contains an invisible file ".TOC.plist".

To determine how many tracks are on it, let read its lines
<key>Last Track</key>
<integer>14</integer>


There is a thread "Reading TOC of Audio CD?" somewhere in General, but I can't find it yet:
Tomis wrote:
Audio CDs are accessible via virtualized file system on Mac OS X. You'll see the tracks displayed as AIFF files; Track 1.aif, Track 2.aif, etc.
You could open all the tracks in EditableMovie properties or MoviePlayer controls, then get their durations from there and tally them up.
ImagePlay Effects Library (40+ image effects in one open source module. No plugins, no dependencies, no restrictions.)
http://imageplay.sourceforge.net/

_________________
This is REALbasic 2011r3 on a MacBook Pro Late '10 ("MacBookPro6,2") with Mac OS X 10.8.3


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

All times are UTC - 5 hours


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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group