Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2004
    Location
    Taiwan
    Posts
    83

    Peekaboo! After buliding project, the location seem is incorrect!

    Hi all:
    I have some codes as below:
    --It uses Windows Media Player to open 1.mp3.
    File.Run("AutoPlay\\Docs\\wmplayer.exe", "C:\\1\\CD_Root\\AutoPlay\\Docs\\1.mp3", "", SW_SHOWNORMAL, false);

    If the codes has build finished, it can't open the 1.mp3 by Windows Media Player.
    It seems open file path incorrect. If I put 1.mp3 file to AutoPlay\\Docs, can it play properly? Or Where can I put ?

    How do I put it to correct destination? Who can tell me or solve this confuse problem? Thank you for advance.
    Pierre

  2. #2
    Join Date
    Jul 2003
    Posts
    712
    Hello Pierre,

    AutoPlay Media Studio includes actions to play an audio file from within your application. Put an audio file (like OGG or WAV) in your Audio Directory (AutoPlay\Audio), and use the following action to play it:
    Code:
    Audio.Load(CHANNEL_USER1, "AutoPlay\\Audio\\soundfile.wav", true, false);
    That would be your best bet.

    Hope that helps!

    Note: MP3 is a patented format and using it in multimedia projects may require you to pay licensing fees to the patent holders. That's why AutoPlay Media Studio 5.0 supports superior and patent-free compressed audio formats such as Ogg Vorbis (OGG).

  3. #3
    Join Date
    Apr 2004
    Location
    Taiwan
    Posts
    83
    Hi Desmond:
    Thanks your reply. But I want to make a MultMedia Design, so I will need an external applicaton to open mp3 format file. Now, I occure a problem during making the project.

    As subjec: after building project, I original setup path to open the mp3 format file by Windows Media Player, it will become incorrect. Can you tell me where it puts the file location? Thank you again. I wish the thread will not bother you.
    Pierre

  4. #4
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    Pierre, are you publishing as a "Compressed Executable"? If so, try publishing to a "Hard Drive Folder" and see if you receive the same results.

  5. #5
    Join Date
    Apr 2004
    Location
    Taiwan
    Posts
    83
    Thank Desmond and rhosk. I has tried successfully that it can reach my demand. Thank you again.
    Pierre

  6. #6
    Join Date
    Jul 2003
    Posts
    712
    Any Time Pierre, good luck!

Similar Threads

  1. Position project at certain location on screen
    By ghobii in forum AutoPlay Media Studio 5.0
    Replies: 5
    Last Post: 08-16-2007, 06:13 AM
  2. HOWTO: Open a Version 3.0 Project in Version 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-30-2002, 02:09 PM
  3. HOWTO: Create a Project Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 01:49 PM
  4. INFO: Recovering a Project File From a Built Application
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-10-2002, 08:44 AM
  5. Import a Project file ?
    By SwamiTK in forum Setup Factory 6.0
    Replies: 2
    Last Post: 05-29-2001, 07:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts