Csound Csound-dev Csound-tekno Search About

[Cs-dev] wii opcodes

Date2011-03-02 17:15
FromFrancois PINOT
Subject[Cs-dev] wii opcodes
AttachmentsNone  None  
Hello,

I tried the wii.csd example from the manual and it cannot connect to my wiimote. The wiimote is found but the connection fails:

...
Csound version 5.13 (double samples) Jan 22 2011
displays suppressed
0dBFS level = 32768.0
orch now loaded
audio buffered in 1024 sample-frame blocks
ALSA output: total buffer size: 16384, period size: 1024
writing 4096-byte blks of shorts to dac:hw:0
SECTION 1:
ftable 1:
wiiuse v0.12 loaded.
  By: Michael Laforest <thepara[at]gmail{dot}com>
  http://wiiuse.net  http://wiiuse.sf.net
[INFO] Found 1 bluetooth device(s).
[INFO] Found wiimote (00:22:AA:8F:48:21) [id 1].
connect() output sock: Argument invalide
INIT ERROR in instr 1: unable to open wiimote

...

When I try the example given with the wiiuse library, it works fine. I compared the code in the example.c file from wiiuse lib with the csound wiimote.c file from the csound sources. I don't see any relevant difference in the init code, except for the reallocation of the wiimote struct pointers in the global space of csound.

Any idea?

Regards

Francois