Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to play the sound Handle in Quicktime ?



Hi all,

I am a newbie to Quicktime.

With Director MX20004 environment, i will get the sound handle. I want to play this via Quicktime.
With quickTime is it possible to play the handle directly?


I can play the handle via SoundManager sndPlay API. But Is it possible to get the Current position and set the start position with the Sound Manager?

I am doing all these in in a CFM Director xtra, which is developed using CodeWarrior 9.0.


I tried with the below code, but could not get this working for me.


Handle hSourceWave = (char**)getWaveDataFromCast(p_member,&pFirstSample,&numSamples);


	    Movie                   movie;

	NewMovieFromHandle(&movie, hSourceWave, 0, nil);
	SetMovieVolume(movie, kFullVolume);
	        GoToBeginningOfMovie(movie);
        StartMovie(movie);
        while (!IsMovieDone(movie))
        {
            MoviesTask(movie, 250);
            err = GetMoviesError();
        }



Regards,
Dhanaraj.

-----------------------------------------------
Robosoft Technologies - Come home to Technology

Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.


_______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-API mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.