Using JMF player.setRate to playback mp3 files at different speeds
Hi, I am a somewhat new Java programmer and i have managed to set up a player, and playback a local mp3 file, however, I would like to be able to change the speed/tempo at which the mp3 is played. I believe player.setRate(float a) is the way to do it, however, calling that method after realizing, but prior to starting does not seem to make any noticeable difference. I tried arguments such as setRate(1.0) and setRate(1000.0). I also am aware that in the API, it says that players only garuntee a rate of 1.0, so I suppose it is possible I may not be able to change this rate.
Thanks in advance for any insight.
Re: Using JMF player.setRate to playback mp3 files at different speeds
According to the documentation, Quote:
The setRate method returns the actual rate set by the Clock.
In your program, what value does setRate(...) return?
db
Re: Using JMF player.setRate to playback mp3 files at different speeds
It returns 1.0 even if I enter 100.0 in as an argument, which would explain why it isn't changing the rate of play.