mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
Mostly whitespace
This commit is contained in:
@@ -31,7 +31,7 @@ using OpenCLNet;
|
||||
|
||||
namespace CUETools.Codecs.FLACCL
|
||||
{
|
||||
public class FLACCLWriterSettings: AudioEncoderSettings
|
||||
public class FLACCLWriterSettings : AudioEncoderSettings
|
||||
{
|
||||
public FLACCLWriterSettings()
|
||||
: base("", "8")
|
||||
@@ -273,6 +273,7 @@ namespace CUETools.Codecs.FLACCL
|
||||
{
|
||||
if (inited)
|
||||
{
|
||||
inited = false;
|
||||
int nFrames = samplesInBuffer / m_blockSize;
|
||||
if (nFrames > 0)
|
||||
do_output_frames(nFrames);
|
||||
@@ -303,6 +304,14 @@ namespace CUETools.Codecs.FLACCL
|
||||
task2.frameCount = 0;
|
||||
}
|
||||
|
||||
task1.Dispose();
|
||||
task2.Dispose();
|
||||
if (cpu_tasks != null)
|
||||
foreach (FLACCLTask task in cpu_tasks)
|
||||
task.Dispose();
|
||||
openCLProgram.Dispose();
|
||||
OCLMan.Dispose();
|
||||
|
||||
if (_IO.CanSeek)
|
||||
{
|
||||
if (sample_count <= 0 && _position != 0)
|
||||
@@ -330,13 +339,6 @@ namespace CUETools.Codecs.FLACCL
|
||||
}
|
||||
_IO.Close();
|
||||
|
||||
task1.Dispose();
|
||||
task2.Dispose();
|
||||
if (cpu_tasks != null)
|
||||
foreach (FLACCLTask task in cpu_tasks)
|
||||
task.Dispose();
|
||||
openCLProgram.Dispose();
|
||||
OCLMan.Dispose();
|
||||
inited = false;
|
||||
}
|
||||
}
|
||||
@@ -961,7 +963,7 @@ namespace CUETools.Codecs.FLACCL
|
||||
{
|
||||
FlacSubframeInfo sub = frame.subframes[ch];
|
||||
// subframe header
|
||||
int type_code = (int) sub.best.type;
|
||||
int type_code = (int)sub.best.type;
|
||||
if (sub.best.type == SubframeType.Fixed)
|
||||
type_code |= sub.best.order;
|
||||
if (sub.best.type == SubframeType.LPC)
|
||||
@@ -1061,7 +1063,7 @@ namespace CUETools.Codecs.FLACCL
|
||||
{
|
||||
for (int ch = 0; ch < channelsCount; ch++)
|
||||
{
|
||||
int *selectedTasks = (int*)task.clSelectedTasksPtr;
|
||||
int* selectedTasks = (int*)task.clSelectedTasksPtr;
|
||||
for (int j = 0; j < task.nEstimateTasksPerChannel; j++)
|
||||
{
|
||||
int k = j;
|
||||
@@ -1315,7 +1317,7 @@ namespace CUETools.Codecs.FLACCL
|
||||
/// </summary>
|
||||
/// <param name="task"></param>
|
||||
/// <param name="doMidside"></param>
|
||||
unsafe void unpack_samples_16(FLACCLTask task, byte * srcptr, int count)
|
||||
unsafe void unpack_samples_16(FLACCLTask task, byte* srcptr, int count)
|
||||
{
|
||||
short* src = (short*)srcptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user