realbasic-nug
[Top] [All Lists]

Re: Getting song duration and using Sound class for playing the sound

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Getting song duration and using Sound class for playing the sound
From: Joe Huber <joehuber at talasoft dot com>
Date: Fri, 31 Dec 2004 13:42:18 -0800
Cc: Ron Benditt <rbenditt at alienapparatus dot com>
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20041231180032 dot 9F2DA62EA3A at lists dot realsoftware dot com> <02851AFB-5B71-11D9-AFB2-000A279192DE at alienapparatus dot com>
At 4:14 PM -0500 12/31/04, Ron Benditt wrote:
I used to open sounds as editablemovies because I wanted access to the duration property. I had to abandon that approach because during my beta testing, I found that users were trying to open songs from CDs (i.e. non-editable media) or write-protected files. None of these files will open as editablemovies. After researching this a bit, I found that someone posted that you can get the sound's duration by setting its playback position to some extremely large number, then reading it back. You can then reset the position to the original position after obtaining the duration. Another workaround is to use the Monkeybread plugin.

Hi Ron

That's very insightful info.

Does the MBS approach allow you to open EditableMovies from write protected media? I often want to extract a track from a write protected file, but RB's editablemovie class won't open them, as you've noted.

Happy Holidays,
Joe
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>