Correctly calculate number of samples

pull/2/head
Stelios Bounanos 2008-02-14 23:46:02 +00:00
rodzic ea3260118e
commit 38eb18def0
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -787,7 +787,7 @@ void SoundPort::Close(void)
int SoundPort::Read(double *buf, int count)
{
int ncount = (int)floor(MIN(count, SND_BUF_LEN) / rx_src_data->src_ratio);
int ncount = (int)MIN(SND_BUF_LEN, ceil(count / rx_src_data->src_ratio));
int err;
static int retries = 0;