[haiku-commits] haiku: hrev52268 - src/kits/game

  • From: Stefano Ceccherini <stefano.ceccherini@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 23 Aug 2018 08:03:24 -0400 (EDT)

hrev52268 adds 1 changeset to branch 'master'
old head: 9923dd5ce5eede90944a029852916e33d2f17450
new head: 6ec69f4426d9d171c683124d62cfbd7762a37f27
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=6ec69f4426d9+%5E9923dd5ce5ee

----------------------------------------------------------------------------

6ec69f4426d9: Small style fixes
  
  Change-Id: I1db785122efe70e416b4073c06148c856c5a5e8d

                             [ JackBurton79 <stefano.ceccherini@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev52268
Commit:      6ec69f4426d9d171c683124d62cfbd7762a37f27
URL:         https://git.haiku-os.org/haiku/commit/?id=6ec69f4426d9
Author:      JackBurton79 <stefano.ceccherini@xxxxxxxxx>
Date:        Thu Aug 23 11:54:34 2018 UTC

----------------------------------------------------------------------------

1 file changed, 9 insertions(+), 8 deletions(-)
src/kits/game/FileGameSound.cpp | 17 +++++++++--------

----------------------------------------------------------------------------

diff --git a/src/kits/game/FileGameSound.cpp b/src/kits/game/FileGameSound.cpp
index 4cfe23c200..bd7ad2d3ef 100644
--- a/src/kits/game/FileGameSound.cpp
+++ b/src/kits/game/FileGameSound.cpp
@@ -25,10 +25,10 @@
 const int32 kPages = 20;
 struct _gs_media_tracker
 {
-       BMediaFile*             file;
-       BMediaTrack*    stream;
-       int64                   frames;
-       size_t                  position;
+       BMediaFile*     file;
+       BMediaTrack*    stream;
+       int64           frames;
+       size_t          position;
 };
 
 
@@ -341,12 +341,13 @@ BFileGameSound::SetPaused(bool isPaused, bigtime_t 
rampTime)
 
        if (rampTime > 100000) {
                // Setup for ramping
-               if (isPaused)
+               if (isPaused) {
                        fPausing = InitRamp(&fPauseGain, 0.0,
-                                                               
Format().frame_rate, rampTime);
-               else
+                                       Format().frame_rate, rampTime);
+               } else {
                        fPausing = InitRamp(&fPauseGain, 1.0,
-                                                               
Format().frame_rate, rampTime);
+                                       Format().frame_rate, rampTime);
+               }
        }
 
        fPaused = isPaused;


Other related posts:

  • » [haiku-commits] haiku: hrev52268 - src/kits/game - Stefano Ceccherini