Playing WMA audio files

tsdt

Active Member
Licensed User
Hi all,

Currently, I am using Fmodce 3.75 to play mp3, and wav files. I have tried to play wma audio file, but, fail to do so. I read the latest FMOD EX does support a lot of audio file formats. If I am not mistaken, B4PPC is not compatible with FMODEX, am I right?

Anyway, please advise on how to play audio file WMA.

Thanks a lot.

Best regards.

:icon_clap:
 

ExcludeReality

Active Member
Licensed User
Try to call Windows Media Player. Simply run wmplayer.exe, from the Windows directory, with the target file as a parameter.
For example: Shell ("Windows/wmplayer.exe","/TargetFile.wma")
If you don't want the user to see the player you can bring your form back to focus and then close the WMP process when the file is done playing (if you know the length).
 

sitajony

Active Member
Licensed User
Fmod know the wma format normaly, there's a couple of week I used Fmod for play a wma file...
If you want play a music who is in the same path of your program be sure that you written "AppPath" cause I think that there're some problems if we write "music.wma" and not AppPath & "\music.wma"...
Good Luck
 

tsdt

Active Member
Licensed User

Thanks for your reply.

I read that the latest Fmod can play wma, the one that B4PPC supported is not able to do that. Am I right Erel?

:icon_clap:
 

mjcoon

Well-Known Member
Licensed User
I read that the latest Fmod can play wma...

You do have to distinguish PC and PPC. My code for calling FMOD reads:

B4X:
   If cPPC Then
      extensions = "*.mp3;*.wav;*.ogg"
   Else
      extensions = "*.mp3;*.wav;*.ogg;*.wma;*.mid"
   End If

HTH, Mike.
 

tsdt

Active Member
Licensed User
The device library doesn't support wma files.
I'm pretty sure that FMOD v3.75 CE is that latest version supported by Windows Mobile / Windows CE devices.

I see.. So, if I were to play some audio files besides the one you have listed in the code, I have to either call it from external like what the other guys were doing, right?

Thanks.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…