Page 1 of 1

Play AVI only with the sound???

Posted: Thu Feb 05, 2004 7:19 am
by mask
hi, all. currently, i'm doing some directX prorgamming....it's not easy as i'm new to this....

the problem is how could i play AVI or MPEG or any video format file with sound only?? i need trigger out the amplitude of the sound wave and draw it with a time line.....

thanks a lot!!!
:D regards

Re: Play AVI only with the sound???

Posted: Thu Feb 05, 2004 7:37 am
by PB
This is not the best solution (it sucks, actually), but it works... it basically
plays the movie on an invisible window... hehehe. :wink:

Code: Select all

m$="c:\movie.mpg"
If OpenWindow(0,0,0,352,240,#PB_Window_ScreenCentered,"test")
  OpenWindow(1,0,0,0,0,#PB_Window_Invisible,"hidden")
  InitMovie() : LoadMovie(0,m$) : PlayMovie(0,WindowID(1))
  Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf

Posted: Sat Feb 07, 2004 10:51 am
by merendo
You can open some movie types with FMOD and play back the audio stream. I am not sure if that works with all types of movies.... http://www.fmod.org