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

Play a song with QTMovie


  • Subject: Play a song with QTMovie
  • From: "Dani ." <email@hidden>
  • Date: Tue, 26 Jun 2007 10:59:12 +0200

Hi! I've been reading every message about how to play a song with
cocoa, and finally I can't find anything that works. I've made a
simple code, and I want to know what I am doing wrong. Thanks

#import <Foundation/Foundation.h>
#import <QTKit/QTMovie.h>

int main (int argc, const char * argv[]) {

	NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];


	NSString *src = @"/Users/bittercold/Desktop/deadbolt.aiff";
	QTMovie *song = [[QTMovie alloc] initWithFile:src error: NULL];
	[song play];

	[pool release];
	return 0;
}

--
thedecline.net
_______________________________________________

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: Stephane Sudre <email@hidden>
  • Prev by Date: Re: AppleScript not sending my Cocoa app proper floats on Intel
  • Next by Date: Re: Disable popup button cell in table view
  • Previous by thread: Re: AppleScript not sending my Cocoa app proper floats on Intel
  • Next by thread: Re: Play a song with QTMovie
  • Index(es):
    • Date
    • Thread