• 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: Play a song with QTMovie
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Play a song with QTMovie


  • Subject: Re: Play a song with QTMovie
  • From: "R. Matthew Emerson" <email@hidden>
  • Date: Tue, 26 Jun 2007 17:19:33 -0400


On Jun 26, 2007, at 8:46 AM, Dani wrote:

I've tried making a new Cocoa Application project with Xcode, and now it seems to work well, but now I don't know how to check if a song is currently playing or not.

- (IBAction)play:(id)sender
{

	src = @"/Users/bittercold/Desktop/deadbolt.aif";
	snd = [[QTMovie alloc] initWithFile:src error: NULL];
	[snd play];
}

You can also use NSSound here in lieu of QTMovie. NSSound includes the delegate method sound:didFinishPlaying:.


You might like to look at http://www.thoughtstuff.com/rme/weblog/? p=10 (which is a little post about playing sounds from the command line).


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Play a song with QTMovie
      • From: Dani <email@hidden>
References: 
 >Play a song with QTMovie (From: "Dani ." <email@hidden>)
 >Re: Play a song with QTMovie (From: Stephane Sudre <email@hidden>)
 >Re: Play a song with QTMovie (From: Stephane Sudre <email@hidden>)
 >Re: Play a song with QTMovie (From: Dani <email@hidden>)

  • Prev by Date: Re: Core Data / Bindings question
  • Next by Date: Another Core Data Ivar Setter and Undo Issue
  • Previous by thread: Re: Play a song with QTMovie
  • Next by thread: Re: Play a song with QTMovie
  • Index(es):
    • Date
    • Thread