JSlider or similar for controlling position in sound files help please.

You know how winamp, wm player , etc, and JMStudio all have a "slider" bar to control position, along with a "numeric readout" of the current position.
Fairly new to Java, but know this isn't a difficult thing to do, just haven't found out how to do it.
Do not care if it is with JavaSound API or JMF, either is fine, just learning.
Have read up on Sliders at:
http://java.sun.com/docs/books/tutorial/uiswing/components/slider.html#labels
But do not understand how to implement it with Audio file usage.
My goal as a new programmer is to create a simple audio playing Applet:
For a GREAT idea on what it will basically do check out:
JMStudio:
http://java.sun.com/products/java-media/jmf/2.1.1/jmstudio/jmstudio.html
My goals are to have:
Applet
GUI with: Pause/Play button and a SLIDER to control position, just like described.
Have it load and play an audio file when a link is clicked on using the PARAM tag from html
I know about the open source/commercial products,,,, but I'm trying to learn, and those are too in depth to try and learn from right now, trying to take baby steps, and having difficulty finding anything beyond play()
loop() and stop()
searched google, groups, yahoo with various phrases.
Thank you!

You have to use a JSlider and combine its events with the setMediaTime method of the player.

Similar Messages

  • On my HP printer Officejet4620 I get an error message "waiting for printer to become available".  Help please?

    On my HP printer Officejet4620 I get an error message "waiting for printer to become available".  Help please?

    Restart the computer and restart the printer. If you continue to have the problem the follow the steps Apple outlines in Reset Printing System feature article.

  • I can't change the country for my new credit card. Help please.

    I stopped family sharing, but I still receive a message that I belong to a family when I try to change the country for my new credit card. Help please.

    Sometimes logging out of iTunes can free up the editing.
    Do you use iTunes Match?

  • What's the best solution for audio out of sound files from a MacBook Air to both an amplifier and to a subwoofer amplifier? I'm using the MBA to play sound files for worship services at our church.

    I have a MacBook Air (13", 1.7GHz, 8GB RAM, 500GB SSD) that I'll be using to play sound files (primarily organ and piano) for worship services at my church. We'll be using a QSC RMX2450 650 Watts/Channel amplifier with Community CPL-27 speakers and also a JBL SUB 250P powered subwoofer with its own amplifier. What's the best option for getting sound out from the Mac to both of these amplifiers? 

    if you work with own recorded sounds you might wanna have a music program where you want to work with samples, steinberg has got very good ones (so they say)... but their really really ( ²) expensive(that's why almost no one haves them), magix haves good ones too bu their more for 'unprofessional' use, ableton haves really good ones too and they're not to difficult to use (if you know a bit of those programs you learn very quickly) and if you don't get them, there is a sort of manual built in it which explains and lets you do things to start (basics)
    i hope this helped, btw stereo speakers are always better if you buy good ones (no pc speakers), but if you don't think you need them, don't buy them...
    so again, i hope you have some ideas now

  • I'm not able to upgrade my Mac to itunes 10.5. Keep getting message "Run pre upgrade script for apple mobile device support" any help please?

    Hi I'm not able to upgrade my Mac OS X 10.5.8 to itunes 10.5 Keep getting message "the following install failed. run pre upgrade script for apple mobile device support" contact software manufacture for assistance. any help please?

    Did you ever figure out the problem? "Contact Software Manufacturer"?? That sounds ominous... I've got the same issue and I'm pretty durn aggravated right about now....
    Thanks!

  • TS2755 I have just updated my phone to iso 7 on my wifes i tunes on her computer, now when i send a message to people they get my email address come up and when i need to update it askes for her apple id.. any help please

    I have just updated my iphone to iso 7.0.2 on my wifes i tunes on her computer,now when i send a message to people they get my email address come up and when i need to update apps it asks for her apple id... any help please????

    ChrisJ4203,
    Thank you for the help.  Every app on my phone was downloaded using my old I-tunes ID.  I just hope that they will re-download under my new ID because I still can't change it on my phone.  In order to change to the new ID it says I have to sign out from the old ID and change to the new one.  My problem is that I don't remember my password to be able to sign out from my old ID.  Then the phone says it can change my password through e-mail and I  agree but I never get an e-mail at my old address or the new one.
    BHuyett

  • 'Description' text missing for all my iTunes pages - any help please ?

    I have Just noticed ( 11.10.2012 ) all the description text on all of my iTunes Pages is missing ! - no 'i' symbol, just to lines - - .
    Any ideas or help please, nothing changed my end !
    Kind regards,
    Matthew Jones

    On a similar note, any TV Shows that I have purchased from the iTunes store since 10.7.0.21 have no descriptions associated or embedded within the file downloads. I have to add them manually to my iTunes library, which is a bit annoying.
    Any ideas?
    Regards
    Hans

  • RAID for control and red log files

    I'm considering one of these two configurations
    Option 1:
    2 disks kept as separate disks (not using RAID), storing control01.ctl, redo log group 1 on first disk, and storing control02.ctl, and redo log group 2 on second disk.
    Option 2:
    2 disks configured as a RAID 1+0 volume (mirroring and striping) holding control01.ctl and a redo log group.
    (Data files and third control file are elsewhere on the disk array.)
    With option 1, I have the option of dropping a control file and dropping a redo log group if a disk fails and then continuing processing. But with option 2, if the RAID array fails, I'm sunk.
    I'm thinking option 1 is better. What do others think? And why?
    Thanks in advance,
    Chris Curzon

    Your Raid option has the following advantage: since it mirrors things, a person can [accidently or maliciously] simultaneously remove all control files and redo logs with a single remove command, effectively crashing the database into near unrecoverability.
    Option 1 would have the disadvantage - for the person identified above - in that they would need two separate commands to ruin the system.
    But, with simple mirroring, between the first and second command, the system would have halted and hopefully alerted someone that a weird but recoverable thing is happening. And the DBA would be able to get going simply by copying the mirrored file to the other, removed, location.
    Message was edited by: Hans Forbrich
    To make it clear - the advantage is NOT on the DBA's side ...

  • I am looking for the volume control for skype /iPad ? Can anyone help please?

    I am stumped.
    I can hear people on my iPad skype but they can't hear me.
    They say to turn up the volume on the volume control on the menu bar ?? I can't see any menu bar.
    They say check the Audio Settings ?? Where ?? Ohhhhh I am so sad!
    Can anyone help this old digger ? Please.

    Is the iPad connected to the internet?
    If so, and it's still not working just restore the iPad.
    Note: Take a picture with your iPhone, wait 5 mins then check photo stream on your iPad and see if it appears.

  • NO SOUND PROBLEM HELP PLEASE!

    i have a lenovo g580 and it has been owrking fine since i got it (christmas) until a week ago. 
    I turned on my laptop in the morning and i message pops up saying that it cannot connect to the dolby advanced audio driver, reinstall it if the problem persists. but startup sounds and youtube sounds would play, nothing else. so i turn it on the next day to fix it and there is no sound AT ALL. so i hover over the sound icon and it says no audio output device is installed. so i try to fix it day after day. then yesterday i turn it on and reinstall some drivers and stuff and now it says no headphones or speakers are plugged in and under playback devices, my speakers dont show up.
    -Lenovo G580
     64 bit operating system
     windows 7
     8GB RAM
    someone please help

    hi FunnyMar5ian,
    Welcome to Lenovo Community Forums!
    Here,
    Make sure to un-install the Audio driver first under Device Manager
       > Open device Manager
       > Go to sound, video and game controllers
       > Look for Realtek High Definition Audio or High Definition Audio
       > Right click on it and select uninstall put a check on Delete the driver software for this device
    Check you Control Panel / Programs and feature / Uninstall a program list for any Realtek Audio and Dolby Advanced audio.
    Uninstall both
    If non then just proceed to the next step,
    Download and install this first
    Realtek Audio Driver
    0lau07ww.exe
    187MB
    After installation go to    
    Your Drive "C:" under My Computer then go to
                   /Drivers
                   /Realtek Audio Driver
                   /PCEE4
                   /DolbyAdvancedAudio.msi
    Install the DolbyAdvancedAudio.msi.
    Then Restart your computer and Check your sound.
    Hope this helps,
    Cheers!!
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • After reopening Firefox does not remember which desktop was used for each window. Can you help, please.

    I'm using two displays and several desktops on my Mac (OS X 10.9.4).
    When I need to restart Firefox, it remembers to open windows from last session in correct display, but does not remember which desktop was used for each window. So when the application starts, it opens all windows on a desktop which is currently active instead of reopening them on desktops used during the last session. How to fix the issue?

    Hi Nerva,
    Thank you for your question, there is a add on I have been recommended to custom set up of opening windows in new monitors. It's called [https://addons.mozilla.org/en-US/firefox/addon/monitor-master/ Monitor Master].
    However, in regards to the session remembering which monitor the window was open in, in the profile folder there is a file that stores window positions and dimensions. It is called localstore.rdf.
    Please stay tuned for more investigation, as there are definitely bugs on file for similar issues. Pinpointing it is the hard part.

  • Setting up Eclipse for C++ OpenGL development on Arch (Help, please!)

    I've recently switched over to Arch (and love it) from Windows 7, and am trying to start developing in OpenGL using C++. I've used Eclipse a lot on the Windows side for Java development, but I'm having trouble referencing the OpenGL libraries in the C++ stuff.
    My code is as follows:
    #include <GL/gl.h>
    #include <GL/freeglut.h>
    int main(int argc, char **argv) {
    glutInit(&argc, argv);
    return 0;
    I don't believe the problem's there because the code won't even begin to compile.
    I tried to find and select the libraries I need in the project properties, but I really have no idea what I'm doing in there. In the current state of things, this is my console output:
    **** Build of configuration Debug for project CGame ****
    make all
    Building target: CGame
    Invoking: Cross G++ Linker
    g++ -L/usr/include/GL -o "CGame" ./main.o -l/usr/include/GL
    /usr/bin/ld: cannot find -l/usr/include/GL
    collect2: error: ld returned 1 exit status
    make: *** [CGame] Error 1
    **** Build Finished ****
    This is what some parts of Eclipse's configuration look like:
    Can anybody lend me a hand? I've been searching around on the Internet for a little while now, but I'm getting tired of all the shitty information there is. Many thanks if you can point out how to include the OpenGL/freeglut libraries in my project. If you want to see how my Eclipse stuff is configured, I can show you over Skype or TeamViewer.
    Last edited by BLACKwave (2012-04-04 21:37:47)

    Got it working? Great!
    Personally, I use the GLFW window library for OpenGL coding. You can get it by:
    pacman -S glfw
    triangle.cpp
    //========================================================================
    // This is a small test application for GLFW.
    // The program opens a window (640x480), and renders a spinning colored
    // triangle (it is controlled with both the GLFW timer and the mouse).
    //========================================================================
    #include <stdio.h>
    #include <stdlib.h>
    #include <GL/glfw.h>
    int main( void )
    int width, height, x;
    double t;
    // Initialise GLFW
    if( !glfwInit() )
    fprintf( stderr, "Failed to initialize GLFW\n" );
    exit( EXIT_FAILURE );
    // Open a window and create its OpenGL context
    if( !glfwOpenWindow( 640, 480, 0,0,0,0, 0,0, GLFW_WINDOW ) )
    fprintf( stderr, "Failed to open GLFW window\n" );
    glfwTerminate();
    exit( EXIT_FAILURE );
    glfwSetWindowTitle( "Spinning Triangle" );
    // Ensure we can capture the escape key being pressed below
    glfwEnable( GLFW_STICKY_KEYS );
    // Enable vertical sync (on cards that support it)
    glfwSwapInterval( 1 );
    do
    t = glfwGetTime();
    glfwGetMousePos( &x, NULL );
    // Get window size (may be different than the requested size)
    glfwGetWindowSize( &width, &height );
    // Special case: avoid division by zero below
    height = height > 0 ? height : 1;
    glViewport( 0, 0, width, height );
    // Clear color buffer to black
    glClearColor( 0.0f, 0.0f, 0.0f, 0.0f );
    glClear( GL_COLOR_BUFFER_BIT );
    // Select and setup the projection matrix
    glMatrixMode( GL_PROJECTION );
    glLoadIdentity();
    gluPerspective( 65.0f, (GLfloat)width/(GLfloat)height, 1.0f, 100.0f );
    // Select and setup the modelview matrix
    glMatrixMode( GL_MODELVIEW );
    glLoadIdentity();
    gluLookAt( 0.0f, 1.0f, 0.0f, // Eye-position
    0.0f, 20.0f, 0.0f, // View-point
    0.0f, 0.0f, 1.0f ); // Up-vector
    // Draw a rotating colorful triangle
    glTranslatef( 0.0f, 14.0f, 0.0f );
    glRotatef( 0.3f*(GLfloat)x + (GLfloat)t*100.0f, 0.0f, 0.0f, 1.0f );
    glBegin( GL_TRIANGLES );
    glColor3f( 1.0f, 0.0f, 0.0f );
    glVertex3f( -5.0f, 0.0f, -4.0f );
    glColor3f( 0.0f, 1.0f, 0.0f );
    glVertex3f( 5.0f, 0.0f, -4.0f );
    glColor3f( 0.0f, 0.0f, 1.0f );
    glVertex3f( 0.0f, 0.0f, 6.0f );
    glEnd();
    // Swap buffers
    glfwSwapBuffers();
    } // Check if the ESC key was pressed or the window was closed
    while( glfwGetKey( GLFW_KEY_ESC ) != GLFW_PRESS &&
    glfwGetWindowParam( GLFW_OPENED ) );
    // Close OpenGL window and terminate GLFW
    glfwTerminate();
    exit( EXIT_SUCCESS );
    Then you can compile the code above by:
    g++ triangle.cpp -o triangle -l GLFW -l GL
    It just draws a rotating triangle, but should get you started on something more exiting.
    Last edited by krigun (2012-04-04 23:39:45)

  • No Audio, External speakers popping sound. Help Please!

    Apple iMac "Core i5" 2.5 21.5-Inch (Mid-2011)
    OS X 10.6.8
    Having trouble with the audio on my iMac. AppleCare is not an option. This system made a few stops between a non-tech literate PO and myself so I have no history for before the symptoms presented.
    Problem Summary:
    No sound from internal speakers at any time.
    No standard audio from external speakers.
    Constant high frequency popping sound from external speakers when hooked up.
    External speakers known and tested good on another system.
    Details:
    Popping sound starts immediatly after startup.
    No startup sound with either internal or external speakers.
    Tried iTunes and YouTube video played on Safari without success.
    In OS onscreen volume control looks and responds normally to volume adjust action.
    Popping sound on external speakers volume does not change with in OS volume adjustment.
    'Internal Speakers' NOT listed in SYS PREF> SOUND> Output Tab   ( 'Headphones' is listed ).
    SLEEP MODE stops popping sound, popping sound restarts with computer but at slower frequency for a few seconds.
    Actions tried:
    Checked and cycled mute options in APPS> SYS PREF> SOUND  &  APPS> UTILITIES> AUDIO MIDI SETUP.
    Quit process 'coreaudiod' in APPS> ACTIVITY MONITOR. * see note below
    Checked that no light visible inside external audio jack.
    Reset NVRAM / PRAM process  http://support.apple.com/kb/HT1379
    Rest System Management Controller http://support.apple.com/kb/HT3964
    Shutdown / Restart with ALL devices unplugged.
    Extra Info:
    Apple USB keyboard w/10 key
    Logitech Wheel Mouse
    'Sample' taken from 'coreaudiod' in ACTIVITY MONITOR
    Analysis of sampling coreaudiod (pid 242) every 1 millisecond
    Call graph:
    2759 Thread_3183 DispatchQueue_1: com.apple.main-thread (serial)
    2759 0x1000016a4
      2759 0x1000071e0
       2759 CFRunLoopRunSpecific
        2759 __CFRunLoopRun
         2759 mach_msg
          2759 mach_msg_trap
    2759 Thread_3184 DispatchQueue_2: com.apple.libdispatch-manager (serial)
    2759 start_wqthread
      2759 _pthread_wqthread
       2759 _dispatch_worker_thread2
        2759 _dispatch_queue_invoke
         2759 _dispatch_mgr_invoke
          2759 kevent
    2759 Thread_3186
    2759 thread_start
      2759 _pthread_start
       2759 CAPThread::Entry(CAPThread*)
        2759 HALRunLoop::OwnThread(void*)
         2759 CFRunLoopRunSpecific
          2759 __CFRunLoopRun
           2759 mach_msg
            2759 mach_msg_trap
    Total number in stack (recursive counted multiple, when >=5):
    Sort by top of stack, same collapsed (when >= 5):
    mach_msg_trap 5518
    kevent 2759

    Have also done an Apple Hardware test. Both levels. Reports there are no problems.

  • The sound on my iPhone isn't working I tried putting headphones in and it worked, but as soon as I take th out and the sound countinues playing the sound stops help please

    The sound on my iPhone isn't working I don't understand why it was working fine an hour ago I haven't dropped it or anything simply just out it on silent... The music I was trying to listen to didn't want to make a sound when I turned it in , I put a pair of headphones in and and it worked as soon as I took it off it completely stopped the music was playing still I could see it in the top column that  the play button was on ... Then I made a call an the same thing happened I turned it on speaker and then I could hear them... The sound is completely off even tho i looked at the seettings and put the volume on high noting is sounding on its own not even when i tap the buttons... I took it off the silent before I tried this stuff I don't understand please help !!!

    make sure that your head phones are not attached to the phone then use the volume buttons on the side, if when using them you see a pic of headphones on the screen, then you have some lint in the headphone jack, use some compressed air and blow it out.
    If you dont see that then try to reset the phone, hold down the home and power buttons for 20 seconds or untill you see the silver apple.
    If you are still having a problem restore the phone and set up as new to see if that clears it up.
    http://support.apple.com/kb/ht1414

  • Best Practice for Keeping Imported Music Organized? - Help Please

    I download tunes and am looking at the best way to keep iTunes up to date with new downloads (as opposed o CD rips). Am i best to have all files in one overall folder and then just use iTunes to import the files from whatever folder they reside in (after the download) to the copy in iTunes and delete the original? To date Ive been keeping them scattered across drives and just using iTunes as the pointer to the original but now losing track as to what has been imported and what hasnt. Perhaps the above is a better way and if so....best to delete iTunes, reinstall with an empty database, import all and then delete from original flile locations? Help and thanks in advance!!
    Porsche216

    I import similar to the way you described. Import then delete original. I keep a folder just for importing. iTunes has a function consolidating the library. It will copy from the multiple locations to the iTunes library location. You would then have to delete the originals to free up space.

Maybe you are looking for