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:
Stephan Aßmus
2009-07-26 23:41:56 +00:00
parent 386f070197
commit a0f0618739
@@ -99,7 +99,7 @@ status_t OpenSoundDeviceEngine::Open(int mode)
// set driver buffer size by using the "fragments" API
// TODO: export this setting as a BParameter?
uint32 bufferCount = 4;
uint32 bufferSize = 0x000a; // 512 bytes
uint32 bufferSize = 0x000b; // 1024 bytes
v = (bufferCount << 16) | bufferSize;
if (ioctl(fFD, SNDCTL_DSP_SETFRAGMENT, &v, sizeof(int)) < 0) {
fInitCheckStatus = errno;