Fixed wrong assert in PCM_round, which didn't allow to call
acmStreamSize with a value of 0 to convert -- native allows it.
This commit is contained in:
parent
4d37b6691b
commit
ea150db949
|
@ -913,7 +913,7 @@ static LRESULT PCM_StreamClose(PACMDRVSTREAMINSTANCE adsi)
|
||||||
*/
|
*/
|
||||||
static inline DWORD PCM_round(DWORD a, DWORD b, DWORD c)
|
static inline DWORD PCM_round(DWORD a, DWORD b, DWORD c)
|
||||||
{
|
{
|
||||||
assert(a && b && c);
|
assert(c);
|
||||||
/* to be sure, always return an entire number of c... */
|
/* to be sure, always return an entire number of c... */
|
||||||
return ((double)a * (double)b + (double)c - 1) / (double)c;
|
return ((double)a * (double)b + (double)c - 1) / (double)c;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue