소스 검색

Update audio.cc

Indentation
Simon Love 9 년 전
부모
커밋
3ecd6cc3f9
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  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)
 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;
         return NULL_AUDIOHANDLE;
     
     
-        Audio::Description newAD;
+    Audio::Description newAD;
     newAD.mVolume = description->mVolume;
     newAD.mVolume = description->mVolume;
     newAD.mVolumeChannel = description->mVolumeChannel;
     newAD.mVolumeChannel = description->mVolumeChannel;
     newAD.mConeInsideAngle = description->mConeInsideAngle;
     newAD.mConeInsideAngle = description->mConeInsideAngle;
@@ -894,8 +894,8 @@ AUDIOHANDLE alxCreateSource_AD(const AudioAsset *profile, const AudioDescription
     newAD.mMaxDistance = description->mMaxDistance;
     newAD.mMaxDistance = description->mMaxDistance;
     newAD.mReferenceDistance = description->mReferenceDistance;
     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);
 extern void threadPlay(AudioBuffer * buffer, AUDIOHANDLE handle);