Doesn't seem to make a difference if I use u25 or u40. I can't get any sound file to loop using setCycleCount(INDEFINITE) on u25 or u40 either.
I will probably submit bug reports for this later. On Mon, Mar 9, 2015 at 6:01 PM, Joe McGlynn <joe.mcgl...@oracle.com> wrote: > The FX/Media stack is supported, and the media stack on Mac was *just* > updated in 8u40 to use the newer AVFoundation stack (10.8+ only) instead of > QtKit. It’s certainly possible there are bugs, please file a bug report > with a reproducer case so we can fix them. > > <http://www.oracle.com/commitment> > > <http://www.oracle.com/commitment> > > On Mar 9, 2015, at 9:31 AM, Robert Krüger <krue...@lesspain.de> wrote: > > Hi, > > anyone doing serious work with the media player on the Mac? I am > experimenting and so far I am not getting the impression, this is really > something very solid. > > The first Audio-Sample I tried playing plays fine the first time but when I > play it for a second time by either issuing stop() followed by play() or > seek(new Duration(0) and then play, the playback cuts off a few samples at > the start (does not happen when I instantiate a new Player for each time I > want to play it, which does not feel right). You need a suitable audio file > like a drum beat that starts immediately in the file to notice the > difference. > > If one was to implement simple sample-player-like functionality (not a full > fledged music sequencer but something that allows timed playback to arrange > sounds on a timeline a bit) in JavaFX, should Mediaplayer be the tool to > use or do I have to use native APIs? Last time I checked JavaSound, it was > still an abandoned toy usable only for educational purposes but not for > anything else. Don't know if that has changed or if this is even the Audio > strategy for JFX. > > Would be great if someone could share experience/opinions in this area. > > Thanks in advance, > > Robert > > > -- Robert Krüger Managing Partner Lesspain GmbH & Co. KG www.lesspain-software.com