Hi all,
I'm having trouble using the sound nodes BackgroundSound and PointSound.
The sound samples I load (16 or 8 bit, 44,100 Hz) are played once as soon as
they are loaded and the scene goes live. And thats irrespective of whether I
enable them initially, set their loop count to infinity etc.
The strange bit is that when I the scene is live, I get isPlaying == 'true',
isPlayingSilently=='false' for nodes that have been enabled, which according
to the documentation should mean that the sound is potentially audible (that
doesn't mean its being played though - does it?).
I've tried a variety of options including scheduling bounds but I can't get
it to work properly.
I have initialised audio using the example from Daniel's book:
PhysicalEnvironment pe = new PhysicalEnvironment();
JavaSoundMixer audioDev = new JavaSoundMixer(pe);
if(audioDev == null)
System.err.println("Warning: No sound devices present.");
if(audioDev != null)
{
pe.setAudioDevice(audioDev);
audioDev.initialize();
}
// attach pe to the view etc...
I know my problem description is too vague but I'm guessing I'm doing
something very wrong and common.
I have tried the code in two machines but the issue remains - So that
restricts the possibility of my sound card being the problem I hope.
Any suggestions?
Cheers,
Panos
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".