const struct GNUNET_MessageHeader *msg)
{
struct Microphone *mic = cls;
+ const struct AudioMessage *am;
if (ntohs (msg->type) != GNUNET_MESSAGE_TYPE_CONVERSATION_AUDIO)
{
GNUNET_break (0);
return GNUNET_SYSERR;
}
- // FIXME: unbox here, instead of sending with overhead!
- // (see speaker.c::play)
+ am = (const struct AudioMessage *) msg;
mic->rdc (mic->rdc_cls,
- ntohs (msg->size),
- (const char *) msg);
+ ntohs (msg->size) - sizeof (struct AudioMessage),
+ &am[1]);
return GNUNET_OK;
}