I am using an Series 40 SDK 3rd Edition tool kit in eclipse environment.
the following is the code I execute:
InputStream is = getClass().getResourceAsStream("/mtmp05116.wav");
player = Manager.createPlayer(is, "audio/wav");
player.addPlayerListener(this);
player.realize();
player.prefetch();
(BTW - when I ask for "audio/x-wav" the createPlayer jump to the exception. and I don't understand why.)
the program doesn't pass the prefetch and that's why I am trying to figure the reason for.
The following is the stack trace of from the debugger:
EventDispatcher.attachEventConsumer(int, EventConsumer)
MediaEventConsumer.getInstance()
AudioOutImpl(MediaOut).activate()
AudioOutImpl(MediaOut).openRamDataSession(byte[],String,int,int)
SampledPlayer(MediaPlayer).doPrefetch()
SampledPlayer(BasicPlayer).prefetch()
...(here it is my app)
The application stays at that state and doesn't change.
Please help
Thanks

Reply With Quote

