I've been looking around the forum for a while and it has helped me immeasurably but I have recently come up against a problem that I cannot figure out and that I have not seen anywhere on the forums. Here goes!
I am trying to 'stream' music to the NXT brick from a PC using bluetooth. All is going well with transferring the data, but I am having a heck of a time playing it. I looked into the .wav file format and the Sound.playSample() method so I understand how to strip the .wav into pure digital sound data on the PC side. The problem comes in getting the NXT to actually play the sound data. It appears that there is a 'native' method which handles the actual playing of the sound data which I have not been able to track down in the classes or documentation. I imagine that the method will do something like take in one or more bytes of information and translate those into a number which is then used to generate an appropriate voltage at the speaker. I need to know how to access this native method and, if possible, where to locate documentation for it.
If it is relevant, I am using Lejos 0.85 on a Windows XP Home system.
Thanks for making this an excellent source of useful information about Lejos. I eagerly await your responses.
