Skip to main content

Audio/Sound integration with BD-J

2 replies [Last post]
doubled
Offline
Joined: 2009-01-18

Are there any frameworks available for integrating sound with BD-J projects?
Which audio file formats and codec-s are supported?
Any additional pointers for using sound/audio in BD-J are appreciated.

Thank you.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
doubled
Offline
Joined: 2009-01-18

When I run the following code under InterVidio WinDVD 8, it fails to play the sound clip and displays the the following two messagas:

Failed to open log file.
Error: Unable to realize com.intervideo.media.AudioController@8f7e6f

Can anyone help?

Thank you.

********************************************************************************

...

import org.bluray.net.BDLocator;
import org.davic.media.MediaLocator;
import org.havi.ui.HSound;

...

HSound sound = new HSound();
MediaLocator ml = new MediaLocator(new BDLocator("bd://SOUND:00"));
sound.load(ml.getURL());
sound.play();

...

jscons
Offline
Joined: 2009-02-01

You may have better luck using the JMF Player model for dynamic sound playback. Try this:

...

import javax.media.Manager;
import javax.media.MediaLocator;
import javax.media.Player;

...

MediaLocator locator = new MediaLocator("bd://SOUND:00");
Player sound = Manager.createPlayer(locator);
sound.start();

...

Hope that works for you.

Best,

- Jay