Tests the converter functions in pa_converters.c.
More...
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "portaudio.h"
#include "pa_converters.h"
#include "pa_dither.h"
#include "pa_types.h"
#include "pa_endianness.h"
◆ FLAG_COMBINATION_COUNT
#define FLAG_COMBINATION_COUNT (4) |
◆ M_PI
#define M_PI (3.14159265) |
◆ MAX_CHANNEL_COUNT
#define MAX_CHANNEL_COUNT (8) |
◆ MAX_PER_CHANNEL_FRAME_COUNT
#define MAX_PER_CHANNEL_FRAME_COUNT (2048) |
◆ SAMPLE_FORMAT_COUNT
#define SAMPLE_FORMAT_COUNT (6) |
◆ main()
int main |
( |
int | argc, |
|
|
const char ** | argv ) |
References FLAG_COMBINATION_COUNT, MAX_CHANNEL_COUNT, MAX_PER_CHANNEL_FRAME_COUNT, MaximumAbsDifference(), My_Pa_GetSampleSize(), paClipOff, paDitherOff, paFloat32, paNoFlag, PaUtil_InitializeTriangularDitherState(), PaUtil_SelectConverter(), SAMPLE_FORMAT_COUNT, and TestNonZeroPresent().
◆ MaximumAbsDifference()
float MaximumAbsDifference |
( |
float * | sourceBuffer, |
|
|
float * | referenceBuffer, |
|
|
int | count ) |
◆ My_Pa_GetSampleSize()
◆ TestNonZeroPresent()
int TestNonZeroPresent |
( |
void * | buffer, |
|
|
int | size ) |