Skip to content

Commit

Permalink
newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
v0idp committed Mar 21, 2022
1 parent 917ce86 commit cc68a7d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions CSPL/src/AudioImport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ public static AudioClip Import(string path)
audioData = wholeFile.ToArray();

int lengthSamples = (int)fReader.Length / (format.BitsPerSample / 8);
string name = Path.GetFileNameWithoutExtension(path);
var name = Path.GetFileNameWithoutExtension(path);
var audioClip = AudioClip.Create(name, lengthSamples / format.Channels, format.Channels, format.SampleRate, false);

audioClip.SetData(audioData, format.Channels);
audioClip.name = name;

Expand Down
1 change: 0 additions & 1 deletion CSPL/src/CSPLPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ private void Awake()
Logger.LogInfo($"Plugin {CSPLPlugin.modGUID} is loaded!");
harmony.PatchAll();
}

}
}

0 comments on commit cc68a7d

Please sign in to comment.