mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 07:43:54 +02:00
Define some useful type aliases for arrays of floats and doubles
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#define __AUDACITY_SAMPLE_FORMAT__
|
||||
|
||||
#include "Audacity.h"
|
||||
#include "MemoryX.h"
|
||||
#include <wx/defs.h>
|
||||
|
||||
#include "audacity/Types.h"
|
||||
@@ -151,4 +152,10 @@ void ReverseSamples(samplePtr buffer, sampleFormat format,
|
||||
|
||||
void InitDitherers();
|
||||
|
||||
// These are so commonly done for processing samples in floating point form in memory,
|
||||
// let's have abbeviations.
|
||||
using Floats = ArrayOf<float>;
|
||||
using FloatBuffers = ArraysOf<float>;
|
||||
using Doubles = ArrayOf<double>;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user