Audacity  2.2.0
SampleFormat.h File Reference
#include "Audacity.h"
#include "MemoryX.h"
#include <wx/defs.h>
#include "audacity/Types.h"

Go to the source code of this file.

Classes

class  SampleBuffer
 
class  GrowableSampleBuffer
 

Macros

#define SAMPLE_SIZE_DISK(SampleFormat)
 Return the size on disk of one uncompressed sample (bytes) More...
 

Typedefs

using Floats = ArrayOf< float >
 
using FloatBuffers = ArraysOf< float >
 
using Doubles = ArrayOf< double >
 

Enumerations

enum  fillFormat { fillZero = 0, fillTwo = 2 }
 

Functions

const wxChar * GetSampleFormatStr (sampleFormat format)
 
void CopySamples (samplePtr src, sampleFormat srcFormat, samplePtr dst, sampleFormat dstFormat, unsigned int len, bool highQuality=true, unsigned int srcStride=1, unsigned int dstStride=1)
 
void CopySamplesNoDither (samplePtr src, sampleFormat srcFormat, samplePtr dst, sampleFormat dstFormat, unsigned int len, unsigned int srcStride=1, unsigned int dstStride=1)
 
void ClearSamples (samplePtr buffer, sampleFormat format, size_t start, size_t len)
 
void ReverseSamples (samplePtr buffer, sampleFormat format, int start, int len)
 
void InitDitherers ()
 

Macro Definition Documentation

#define SAMPLE_SIZE_DISK (   SampleFormat)
Value:
(((SampleFormat) == int24Sample) ? \
size_t{ 3 } : SAMPLE_SIZE(SampleFormat) )

Return the size on disk of one uncompressed sample (bytes)

Referenced by AudacityProject::GetEstimatedRecordingMinsLeftOnDisk(), and SimpleBlockFile::GetSpaceUsage().

Typedef Documentation

using Doubles = ArrayOf<double>
using FloatBuffers = ArraysOf<float>
using Floats = ArrayOf<float>

Enumeration Type Documentation

enum fillFormat
Enumerator
fillZero 
fillTwo 

Function Documentation

void CopySamplesNoDither ( samplePtr  src,
sampleFormat  srcFormat,
samplePtr  dst,
sampleFormat  dstFormat,
unsigned int  len,
unsigned int  srcStride = 1,
unsigned int  dstStride = 1 
)

References Dither::Apply(), and Dither::none.

const wxChar* GetSampleFormatStr ( sampleFormat  format)

References _().

Referenced by Sequence::Paste(), and TrackInfo::Status2DrawFunction().

void ReverseSamples ( samplePtr  buffer,
sampleFormat  format,
int  start,
int  len 
)