Fix hsp rate and channels.

This commit is contained in:
Luiz Augusto von Dentz 2009-01-19 10:19:53 -03:00
parent 5793f93350
commit 4460a5d5d5

View file

@ -448,8 +448,11 @@ static int bt_setconf(struct userdata *u) {
} }
u->ss.format = PA_SAMPLE_S16LE; u->ss.format = PA_SAMPLE_S16LE;
} }
else else {
u->ss.format = PA_SAMPLE_U8; u->ss.format = PA_SAMPLE_S16LE;
u->ss.channels = 1;
u->ss.rate = 8000;
}
memset(msg.buf, 0, BT_SUGGESTED_BUFFER_SIZE); memset(msg.buf, 0, BT_SUGGESTED_BUFFER_SIZE);
msg.setconf_req.h.type = BT_REQUEST; msg.setconf_req.h.type = BT_REQUEST;