Play AVI only with the sound???

Advanced game related topics
mask
New User
New User
Posts: 1
Joined: Thu Feb 05, 2004 7:14 am

Play AVI only with the sound???

Post 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
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Play AVI only with the sound???

Post 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
merendo
Enthusiast
Enthusiast
Posts: 449
Joined: Sat Apr 26, 2003 7:24 pm
Location: Germany
Contact:

Post 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
The truth is never confined to a single number - especially scientific truth!
Post Reply