|
From: Jason Y. <bo...@cr...> - 2000-07-25 12:29:41
|
I've been having trouble with a program called MP3SBIR that uses LIRC to =
control an MP3 player. I've been working on figuring out where the =
problem is, and why it won't work on my computer. I'm using lirc =
0.6.0... I inserted some debugging code into the program, and I've =
basically figured out that the mp3sbcontrol library works fine, as does =
lirc. From what I've=20
figured out, the problem is somewhere in the interface between lircd and =
mp3sbir, maybe the lirc client library changed and mp3sbir wasn't =
updated? Here's the section of code:
while((ret=3Dlirc_nextcode(&code))=3D=3D0 && code!=3DNULL) {
while((ret=3Dlirc_code2char(remote.config,code,&ircode))=3D=3D0 &&=20
ircode!=3DNULL) {
cout<<ircode;
if (strcasecmp("PLAY",ircode)=3D=3D0){
mp3.play(); =20
According to mp3sbir, it has no problem up to this point - it connects =
to the mp3sb socket and initializes with lircd with no problem. But, =
the line I insterted (cout<<ircode;) never seems to be executed, because =
no matter how many buttons i push on the remote, there are no messages. =
Ideas anyone?
Jason
|