| View previous topic :: View next topic |
| Author |
Message |
lamoua76
Joined: 24 Dec 2007 Posts: 14
Digg It |
Posted: Thu Feb 07, 2008 5:54 pm Post subject: Play sound |
|
|
Hello !
I finally succeed in using WiiRemoteJ v1.2 (WRLImpl) on Windows with bluecove.
If it can helps, here are the files I use :
- WiiRemoteJ v1.2
- bluecove-2.0.3-20080206.060210-25.jar (snapshot)
- Widcomm bluetooth driver v 5.1.0.1100
On the WRLImpl.java, I find the code that precaches a sound. How is it possible to play it? I try to add a line with playPrebuffedSound with both variable SF_ but nothing.
Thanks for help ! |
|
| Back to top |
|
 |
Cha0s Site Admin
Joined: 17 Jan 2007 Posts: 493
Digg It |
Posted: Thu Feb 07, 2008 7:14 pm Post subject: |
|
|
Did you format the sound correctly? If the sound is not formatted correctly, it won't work. _________________ Cha0s |
|
| Back to top |
|
 |
lamoua76
Joined: 24 Dec 2007 Posts: 14
Digg It |
Posted: Thu Feb 07, 2008 7:18 pm Post subject: |
|
|
I try to play the sound that is in the wiiremotej library : Audio.au with the WRLImp class.
Does this class play the sound normally? |
|
| Back to top |
|
 |
Cha0s Site Admin
Joined: 17 Jan 2007 Posts: 493
Digg It |
Posted: Thu Feb 07, 2008 7:33 pm Post subject: |
|
|
Yea. It should play over the WiiRemote speaker just fine. Make sure you connect first, and enable the speaker, of course. _________________ Cha0s |
|
| Back to top |
|
 |
lamoua76
Joined: 24 Dec 2007 Posts: 14
Digg It |
Posted: Thu Feb 07, 2008 9:37 pm Post subject: |
|
|
Sorry but I think that there is really a problem.
I start WRLImpl, push "+" button to put sound to 1.0, then push "1". With the original code, no sound at all, if I change SF_PCM8S by SF_ADPCM4U, and try again, an awful sound gets out.
What is the problem?
Another question : what do you use to convert in the appropriate format? |
|
| Back to top |
|
 |
Cha0s Site Admin
Joined: 17 Jan 2007 Posts: 493
Digg It |
Posted: Thu Feb 07, 2008 10:16 pm Post subject: |
|
|
It depends. Any good audio-editing software should work. I often use iMovie, though, 'cause it's convenient.
As for the bug... I'm using it right now, no problem. Try it unmodified (redownload and try it from scratch). After connecting, just push 1 and see if that works (i.e. don't push anything else). _________________ Cha0s |
|
| Back to top |
|
 |
lamoua76
Joined: 24 Dec 2007 Posts: 14
Digg It |
Posted: Fri Feb 08, 2008 8:17 am Post subject: |
|
|
Hi ! thanks Chaos for your answer !
I try again and I notice something : SF_PCM8S or SF_ADPCM4U finally don't change anything.
I explain.
My first tries were failures because our dear Windows' Doctor Wastson (a Windows process) was launch since the first failure.
So change SF_PCM8S by SF_ADPCM4U does not change anything. But I really think that sometimes, playing a sound crash something in the PC and then block other tries.
Killing these process result in a good functioning of the sound.
Well, thanks a lot for your work again ! |
|
| Back to top |
|
 |
|