rtr
2005-09-16 01:00:56 UTC
I've got a small app that has all of my A-Law speech samples buffered.
If I use CAPI to deliver the samples do I have to introduce timing as
to not send the samples too quickly?
e.g.
while (my buffer not empty)
send (buffer + offset, chunk)
...
or
while (my buffer not empty)
delay(20000) /* 20ms delay */
send (buffer + offset, 160)
...
I should note that I'm using capi through a higher level interface that
allows chaining of the data passed. The net result of this is that
several B3_DATA_REQ's may be sent before the first B3_DATA_CONF's are
received. Is this not okay? or is the timing introduced between the
B3_DATA_REQ and waiting for the B3_DATA_CONF's?
If I use CAPI to deliver the samples do I have to introduce timing as
to not send the samples too quickly?
e.g.
while (my buffer not empty)
send (buffer + offset, chunk)
...
or
while (my buffer not empty)
delay(20000) /* 20ms delay */
send (buffer + offset, 160)
...
I should note that I'm using capi through a higher level interface that
allows chaining of the data passed. The net result of this is that
several B3_DATA_REQ's may be sent before the first B3_DATA_CONF's are
received. Is this not okay? or is the timing introduced between the
B3_DATA_REQ and waiting for the B3_DATA_CONF's?