Return EALREADY if already in requested playback mode.
That's what the BeBook says the method is suppose to do.
This commit is contained in:
@@ -331,7 +331,9 @@ BFileGameSound::Perform(int32 selector,
|
||||
status_t
|
||||
BFileGameSound::SetPaused(bool isPaused, bigtime_t rampTime)
|
||||
{
|
||||
if (fPaused != isPaused) {
|
||||
if (fPaused == isPaused)
|
||||
return EALREADY;
|
||||
|
||||
Lock();
|
||||
|
||||
// Clear any old ramping
|
||||
@@ -350,7 +352,6 @@ BFileGameSound::SetPaused(bool isPaused, bigtime_t rampTime)
|
||||
|
||||
fPaused = isPaused;
|
||||
Unlock();
|
||||
}
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user