Fix typo: substract -> subtract

This commit is contained in:
Joseph Herlant 2018-09-17 10:03:55 -07:00
parent 61d35fd22f
commit 223b409c9c
No known key found for this signature in database
GPG key ID: 63F7800A23D7B252

View file

@ -474,7 +474,7 @@ pa_usec_t pa_simple_get_latency(pa_simple *p, int *rerror) {
* been consumed, which means that pa_stream_get_latency() will * been consumed, which means that pa_stream_get_latency() will
* return too large values, because the whole size of the * return too large values, because the whole size of the
* partially read chunk is included in the latency. Therefore, * partially read chunk is included in the latency. Therefore,
* we need to substract the already-read amount from the * we need to subtract the already-read amount from the
* latency. */ * latency. */
already_read = pa_bytes_to_usec(p->read_index, pa_stream_get_sample_spec(p->stream)); already_read = pa_bytes_to_usec(p->read_index, pa_stream_get_sample_spec(p->stream));