Newbies eugene2302 Posted October 24, 2007 Newbies Posted October 24, 2007 (edited) Hello. I'm an absolute newbie to scriptwriting but I need to fix one problem with a database. It's a search db for a sound effects library. when one finds what he wants in it and clicks on the track he found the track is being played in media player. The problem is that it only plays .wav files. I need to make it play .mp3 as well. So I found this script in my .fm7 file (it's OPEN URL category in Edit Script window) GetAsText ( Hollywood_Edge_SFX_Win::Path to soundfiles ) & "/" & GetAsText ( Hollywood_Edge_SFX_Win::Set Code ) & "/" & GetAsText ( Hollywood_Edge_SFX_Win::Disc ) & "/" & GetAsText ( Hollywood_Edge_SFX_Win::Disc ) & "-" & GetAsText ( Hollywood_Edge_SFX_Win::Track ) & ".wav" Is it possible to edit it so that it would play .mp3 as well as .wav? Thanks very much in advance. Eugene. Edited October 25, 2007 by Guest
aldipalo Posted October 24, 2007 Posted October 24, 2007 I'm not 100% sure, but, have you tried changing the last ".wav" to ".mp3?"
Newbies eugene2302 Posted October 25, 2007 Author Newbies Posted October 25, 2007 (edited) Yes, I have. But in that case it only plays .mp3. I need to be able to play both .wav and .mp3 file types. I think some line has to be added to the script but I have no idea what it should be. Please help someone! Thanks. Edited October 25, 2007 by Guest
ShawnR Posted October 25, 2007 Posted October 25, 2007 If you know the file is an mp3 or wav, just use 2 scripts or a if in one script. One for mp3, one for wav. Shawn
Newbies eugene2302 Posted October 25, 2007 Author Newbies Posted October 25, 2007 Thanks for the tip, Shawn! You see, the problem is that I've no idea how to do scripts, really. I tried duplicating it and changed .wav to .mp3 in the clone script but it didn't work. I'll try your advice of course but I'm not sure I'll do it right. I need an example, please! If someone could edit the script I posted that'd be awesome. Cheers. PS. there are some unwanted spaces appeared in the script after I posted it to the forum like here: P ath to soundfiles. There should't be any spaces.
Recommended Posts
This topic is 6240 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now