gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
I2SEndianTest.C File Reference
#include "JackClient.H"
#include <iostream>
#include <math.h>
#include <unistd.h>
Include dependency graph for I2SEndianTest.C:

Go to the source code of this file.

Classes

class  TestJackClient
 

Macros

#define NORMALIZED_FLOAT_MIN   -1.0f
 
#define NORMALIZED_FLOAT_MAX   1.0f
 
#define SAMPLE_16BIT_SCALING   32767.0f
 
#define SAMPLE_16BIT_MAX   32767
 
#define SAMPLE_16BIT_MIN   -32767
 
#define SAMPLE_16BIT_MAX_F   32767.0f
 
#define SAMPLE_16BIT_MIN_F   -32767.0f
 
#define f_round(f)   lrintf(f)
 
#define float_16(s, d)
 

Functions

int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ f_round

#define f_round (   f)    lrintf(f)

Definition at line 39 of file I2SEndianTest.C.

◆ float_16

#define float_16 (   s,
 
)
Value:
if ((s) <= NORMALIZED_FLOAT_MIN) {\
} else if ((s) >= NORMALIZED_FLOAT_MAX) {\
} else {\
(d) = f_round ((s) * SAMPLE_16BIT_SCALING);\
}
#define f_round(f)
Definition: I2SEndianTest.C:39
#define SAMPLE_16BIT_MIN
Definition: I2SEndianTest.C:35
#define SAMPLE_16BIT_SCALING
Definition: I2SEndianTest.C:33
#define SAMPLE_16BIT_MAX
Definition: I2SEndianTest.C:34
#define NORMALIZED_FLOAT_MAX
Definition: I2SEndianTest.C:32
#define NORMALIZED_FLOAT_MIN
Definition: I2SEndianTest.C:31

Definition at line 41 of file I2SEndianTest.C.

◆ NORMALIZED_FLOAT_MAX

#define NORMALIZED_FLOAT_MAX   1.0f

Definition at line 32 of file I2SEndianTest.C.

◆ NORMALIZED_FLOAT_MIN

#define NORMALIZED_FLOAT_MIN   -1.0f

Definition at line 31 of file I2SEndianTest.C.

◆ SAMPLE_16BIT_MAX

#define SAMPLE_16BIT_MAX   32767

Definition at line 34 of file I2SEndianTest.C.

◆ SAMPLE_16BIT_MAX_F

#define SAMPLE_16BIT_MAX_F   32767.0f

Definition at line 36 of file I2SEndianTest.C.

◆ SAMPLE_16BIT_MIN

#define SAMPLE_16BIT_MIN   -32767

Definition at line 35 of file I2SEndianTest.C.

◆ SAMPLE_16BIT_MIN_F

#define SAMPLE_16BIT_MIN_F   -32767.0f

Definition at line 37 of file I2SEndianTest.C.

◆ SAMPLE_16BIT_SCALING

#define SAMPLE_16BIT_SCALING   32767.0f

Definition at line 33 of file I2SEndianTest.C.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 77 of file I2SEndianTest.C.

Here is the call graph for this function:
gtkIOStream: /tmp/gtkiostream/applications/I2SEndianTest.C File Reference
GTK+ IOStream  Beta