Przeglądaj źródła

Update audio.cc

Indentation
Simon Love 9 lat temu
rodzic
commit
3ecd6cc3f9
1 zmienionych plików z 6 dodań i 6 usunięć
  1. 6 6
      engine/source/audio/audio.cc

+ 6 - 6
engine/source/audio/audio.cc

@@ -875,12 +875,12 @@ AUDIOHANDLE alxCreateSource(const AudioAsset *profile, const MatrixF *transform)
 //--------------------------------------------------------------------------
 AUDIOHANDLE alxCreateSource_AD(const AudioAsset *profile, const AudioDescription* description, const MatrixF *transform)
 {
-        //Since we don't want to modify AudioAssets all the time
-            //here is a version which accepts a script-defined AudioDescription
-        if (profile == NULL)
+    //Since we don't want to modify AudioAssets all the time
+    //here is a version which accepts a script-defined AudioDescription
+    if (profile == NULL)
         return NULL_AUDIOHANDLE;
     
-        Audio::Description newAD;
+    Audio::Description newAD;
     newAD.mVolume = description->mVolume;
     newAD.mVolumeChannel = description->mVolumeChannel;
     newAD.mConeInsideAngle = description->mConeInsideAngle;
@@ -894,8 +894,8 @@ AUDIOHANDLE alxCreateSource_AD(const AudioAsset *profile, const AudioDescription
     newAD.mMaxDistance = description->mMaxDistance;
     newAD.mReferenceDistance = description->mReferenceDistance;
     
-        return alxCreateSource(newAD, profile->getAudioFile(), transform, NULL);
-    }
+    return alxCreateSource(newAD, profile->getAudioFile(), transform, NULL);
+}
 //--------------------------------------------------------------------------
 
 extern void threadPlay(AudioBuffer * buffer, AUDIOHANDLE handle);