component: old wxOSX/Carbon port | priority: normal
2004-06-06 10:34:53: ryannpcs created the issue
There's also a bunch of ifdefs so that you can run it on
quicktime windows sdk if you want (just peel out the
header and source).
Testing on windows quicktime sdk and OS X Jaguar
with the sound sample and several others (resources
and unicode not tested).
build notes:
Don't forget to include the quicktime framework to
the bakefiles
run notes:
On my machine wxSound isn't really syncronous when
wxSOUND_SYNC is passed - but on windows it is - so
it must be mac qt pre-buffering it or similar.
wxSound for mac can and will play just about any
media file out there with files#. WAVE,AIFF & AIFFC
with memory locations and the usual with resources.
-This can also be a problem - if a video is played qt will
create a new window and locate it at 0,0 with the width
and height of the video. I didn't put anything in there
because I'm assuming the user is not going to be playing
videos with wxSound (You can put some asserts in there
if you want). If you really want to you can call
wxSound::GetHandle() with SetMovieGWorld and play a
video in a wxWindow - such as.
An example if you really want it (s == wxSound*)-
//qt windows
CreatePortAssociation(frame->GetHWND(), NULL, 0L);
SetMovieGWorld((Movie) s->GetHandle(), (CGrafPtr)
GetNativeWindowPort(frame->GetHWND()), nil);
//qt mac
SetMovieGWorld((Movie) s->GetHandle(), (CGrafPtr)
frame->GetHandle(), nil);
Note that quicktime on windows will go ok but quicktime
on mac will crash and burn on the SetMovieGWorld call if
the file doesn't contain any video.
Issue migrated from trac ticket # 6696
component: old wxOSX/Carbon port | priority: normal
2004-06-06 10:34:53: ryannpcs created the issue
There's also a bunch of ifdefs so that you can run it on quicktime windows sdk if you want (just peel out the header and source).
Testing on windows quicktime sdk and OS X Jaguar with the sound sample and several others (resources and unicode not tested).
build notes:
run notes:
On my machine wxSound isn't really syncronous when wxSOUND_SYNC is passed - but on windows it is - so it must be mac qt pre-buffering it or similar.
wxSound for mac can and will play just about any media file out there with files#. WAVE,AIFF & AIFFC with memory locations and the usual with resources.
-This can also be a problem - if a video is played qt will
create a new window and locate it at 0,0 with the width and height of the video. I didn't put anything in there because I'm assuming the user is not going to be playing videos with wxSound (You can put some asserts in there if you want). If you really want to you can call wxSound::GetHandle() with SetMovieGWorld and play a video in a wxWindow - such as.
An example if you really want it (s == wxSound*)-
//qt windows CreatePortAssociation(frame->GetHWND(), NULL, 0L); SetMovieGWorld((Movie) s->GetHandle(), (CGrafPtr) GetNativeWindowPort(frame->GetHWND()), nil);
//qt mac SetMovieGWorld((Movie) s->GetHandle(), (CGrafPtr) frame->GetHandle(), nil);
Note that quicktime on windows will go ok but quicktime on mac will crash and burn on the SetMovieGWorld call if the file doesn't contain any video.