Small style fixes
Change-Id: I1db785122efe70e416b4073c06148c856c5a5e8d
This commit is contained in:
@@ -25,10 +25,10 @@
|
|||||||
const int32 kPages = 20;
|
const int32 kPages = 20;
|
||||||
struct _gs_media_tracker
|
struct _gs_media_tracker
|
||||||
{
|
{
|
||||||
BMediaFile* file;
|
BMediaFile* file;
|
||||||
BMediaTrack* stream;
|
BMediaTrack* stream;
|
||||||
int64 frames;
|
int64 frames;
|
||||||
size_t position;
|
size_t position;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -341,12 +341,13 @@ BFileGameSound::SetPaused(bool isPaused, bigtime_t rampTime)
|
|||||||
|
|
||||||
if (rampTime > 100000) {
|
if (rampTime > 100000) {
|
||||||
// Setup for ramping
|
// Setup for ramping
|
||||||
if (isPaused)
|
if (isPaused) {
|
||||||
fPausing = InitRamp(&fPauseGain, 0.0,
|
fPausing = InitRamp(&fPauseGain, 0.0,
|
||||||
Format().frame_rate, rampTime);
|
Format().frame_rate, rampTime);
|
||||||
else
|
} else {
|
||||||
fPausing = InitRamp(&fPauseGain, 1.0,
|
fPausing = InitRamp(&fPauseGain, 1.0,
|
||||||
Format().frame_rate, rampTime);
|
Format().frame_rate, rampTime);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fPaused = isPaused;
|
fPaused = isPaused;
|
||||||
|
|||||||
Reference in New Issue
Block a user