Enlarge the OpenSound buffer size a bit to reduce the chance of
skipping audio. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31787 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -99,7 +99,7 @@ status_t OpenSoundDeviceEngine::Open(int mode)
|
|||||||
// set driver buffer size by using the "fragments" API
|
// set driver buffer size by using the "fragments" API
|
||||||
// TODO: export this setting as a BParameter?
|
// TODO: export this setting as a BParameter?
|
||||||
uint32 bufferCount = 4;
|
uint32 bufferCount = 4;
|
||||||
uint32 bufferSize = 0x000a; // 512 bytes
|
uint32 bufferSize = 0x000b; // 1024 bytes
|
||||||
v = (bufferCount << 16) | bufferSize;
|
v = (bufferCount << 16) | bufferSize;
|
||||||
if (ioctl(fFD, SNDCTL_DSP_SETFRAGMENT, &v, sizeof(int)) < 0) {
|
if (ioctl(fFD, SNDCTL_DSP_SETFRAGMENT, &v, sizeof(int)) < 0) {
|
||||||
fInitCheckStatus = errno;
|
fInitCheckStatus = errno;
|
||||||
|
|||||||
Reference in New Issue
Block a user