BPushGameSound Constants

lock_status

Declared in: be/game/PushGameSound.h

Constant Description
lock_failed Couldn't get the lock; it's not time to update yet.
lock_ok Locked; you can update.
lock_ok_frames_dropped Lccked; you can update, but you may have missed some buffers.
These values are returned by the locking functions in the BPushGameSound class (LockNextPage() and LockForCyclic()). If either function returns lock_failed, there isn't a buffer to be filled; your code is pushing buffers too fast.
If lock_ok is returned, the next buffer is ready. The lock_ok_frames_dropped result is received if a buffer is available but some buffers have been lost; this can happen if you're not pushing fast enough.

Copyright 2005 by yellowTAB GmbH, Be Inc., Palm Source Inc. and their respective legal successors
All rights reserved.