Results 1 to 3 of 3
  1. #1
    Addez is offline Senior Member
    Join Date
    Aug 2009
    Posts
    294
    Rep Power
    0

    Default How can I freeze this wave player when mute = true?

    Hello.
    I got this file that very simply, plays a wav file.

    Now I want to be able to set a boolean value mute to true.
    Then the file should stop playing the wav until mute = true again.

    But I dont want a while loop looping every second, because It would lag my game too much.
    So how can I do it without using while?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

  3. #3
    Addez is offline Senior Member
    Join Date
    Aug 2009
    Posts
    294
    Rep Power
    0

    Default

    new AeWaveFile("...blah\\myFile.wav").start();

    It does run, I just need a way to pause..

Similar Threads

  1. Freeze cursor
    By Gog in forum New To Java
    Replies: 7
    Last Post: 01-14-2011, 10:29 PM
  2. Serial Comm freeze
    By java_dude in forum Networking
    Replies: 3
    Last Post: 01-13-2011, 10:09 PM
  3. intermittent freeze in JavaWebstart Swing App
    By ambs in forum AWT / Swing
    Replies: 0
    Last Post: 07-27-2010, 04:39 PM
  4. [SOLVED] How To Freeze Tab/s from JTabbedPane
    By javanewbie in forum New To Java
    Replies: 2
    Last Post: 06-10-2009, 09:42 AM
  5. freeze radioButton without disable them
    By itaipee in forum AWT / Swing
    Replies: 5
    Last Post: 05-25-2009, 09:29 AM

Posting Permissions

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