• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: QTTime Display
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QTTime Display


  • Subject: Re: QTTime Display
  • From: "tahome izwah" <email@hidden>
  • Date: Thu, 20 Nov 2008 22:22:09 +0100

(a) look at
NSString -componentsSeparatedByString
NSArray -componentsJoinedByString

(b) multiply hours, minutes etc. with 60 where appropriate
(c) NSDate +dateWithTimeIntervalSinceNow

HTH
--th

2008/11/20 Barry Fawthrop <email@hidden>:
> Hi All
>
> I'm trying to display the duration of an Audio File
>
> So far I have
>
> QTTime duration  = [mMovie duration];
> NSString *length = QTStringFromTime(duration);
> [lengthField setStringValue: length];
>
> Sadly this displays days:hours:minutes:seconds.frame/...
>
> How would one get just      (a) hours:minutes:seconds
> and then convert that into  (b) an Integer of in seconds
>                        and (c) into a dateValue?
>
>
> Thanks in advance
>
> Barry
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >QTTime Display (From: Barry Fawthrop <email@hidden>)

  • Prev by Date: QTTime Display
  • Next by Date: Re: Capturing audio from speakers
  • Previous by thread: QTTime Display
  • Next by thread: Creating an AudioBufferList
  • Index(es):
    • Date
    • Thread