Fix proposition to #5803 noticed by Marcus.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36472 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -34,8 +34,8 @@ struct ReadFloat {
|
||||
struct ReadInt {
|
||||
inline int operator()(const void* buffer) const {
|
||||
// 0 == mid, 0x80000001 == bottom, 0x7fffffff == top
|
||||
short b = *(int*)buffer;
|
||||
if (b == 0x80000000)
|
||||
int b = *(int*)buffer;
|
||||
if (b == -2147483648LL)
|
||||
b++;
|
||||
return b;
|
||||
}
|
||||
@@ -182,7 +182,7 @@ AudioFormatConverter::~AudioFormatConverter()
|
||||
bigtime_t
|
||||
AudioFormatConverter::InitialLatency() const
|
||||
{
|
||||
fSource->InitialLatency();
|
||||
return fSource->InitialLatency();
|
||||
}
|
||||
|
||||
status_t
|
||||
|
||||
Reference in New Issue
Block a user