#include "JackClient.h"
#include "math.h"
#include "string.h"
#include "Snd.h"
Include dependency graph for JackClient.cpp:
Go to the source code of this file.
Functions | |
int | xx_global_process_xx (unsigned int nframes, void *argc) |
Variables | |
jack_port_t ** | input_port |
jack_port_t ** | output_port |
jack_default_audio_sample_t ** | inBufPtr |
jack_default_audio_sample_t ** | outBufPtr |
double * | inFrame |
double * | outFrame |
double * | iPhase |
int | xx_nChans_xx |
unsigned int | xx_nFrames_xx |
Snd * | theSnd |
|
Definition at line 23 of file JackClient.cpp. References inBufPtr, inFrame, input_port, outBufPtr, outFrame, output_port, Snd::tickFrame(), xx_nChans_xx, and xx_nFrames_xx. Referenced by JackClient::JackClient(). 00024 { 00025 if (nframes!=xx_nFrames_xx) 00026 printf("xx_global_process_xx [%d nframes]\n", nframes); 00027 /* "in" is in from jack, "out" is out to jack */ 00028 for (int i = 0; i < xx_nChans_xx; i++) 00029 { 00030 inBufPtr[i] = (jack_default_audio_sample_t *) 00031 jack_port_get_buffer (input_port[i], nframes); 00032 outBufPtr[i] = (jack_default_audio_sample_t *) 00033 jack_port_get_buffer (output_port[i], nframes); 00034 } 00035 // memcpy (outBufPtr[0], inBufPtr[0], sizeof (jack_default_audio_sample_t) * nframes); 00036 // memcpy (outBufPtr[1], inBufPtr[1], sizeof (jack_default_audio_sample_t) * nframes); 00037 00038 for (int j = 0; j < (int)nframes; j++) 00039 { 00040 jack_default_audio_sample_t *inBuf; 00041 jack_default_audio_sample_t *outBuf; 00042 for (int i = 0; i < xx_nChans_xx; i++) 00043 { 00044 inBuf = inBufPtr[i]; 00045 inFrame[i] = inBuf[j]; 00046 } 00047 00048 // for (int i = 0; i < xx_nChans_xx; i++) 00049 // outFrame[i] = inFrame[i]; 00050 /* 00051 for (int i = 0; i < xx_nChans_xx; i++) 00052 { 00053 outFrame[i] = sin (iPhase[i]); 00054 iPhase[i] += 0.01; 00055 } 00056 */ 00057 outFrame = theSnd->tickFrame(inFrame); 00058 00059 for (int i = 0; i < xx_nChans_xx; i++) 00060 { 00061 outBuf = outBufPtr[i]; 00062 outBuf[j] = outFrame[i]; 00063 } 00064 // printf("xx_global_process_xx [frame %d]\n", j); 00065 } 00066 00067 return 0; 00068 }
Here is the call graph for this function: |
|
Definition at line 13 of file JackClient.cpp. Referenced by JackClient::JackClient(), and xx_global_process_xx(). |
|
Definition at line 15 of file JackClient.cpp. Referenced by JackClient::JackClient(), and xx_global_process_xx(). |
|
Definition at line 11 of file JackClient.cpp. Referenced by JackClient::go(), JackClient::JackClient(), and xx_global_process_xx(). |
|
Definition at line 17 of file JackClient.cpp. Referenced by JackClient::JackClient(). |
|
Definition at line 14 of file JackClient.cpp. Referenced by JackClient::JackClient(), and xx_global_process_xx(). |
|
Definition at line 16 of file JackClient.cpp. Referenced by JackClient::JackClient(), and xx_global_process_xx(). |
|
Definition at line 12 of file JackClient.cpp. Referenced by JackClient::go(), JackClient::JackClient(), and xx_global_process_xx(). |
|
|
|
Definition at line 19 of file JackClient.cpp. Referenced by JackClient::JackClient(), and xx_global_process_xx(). |
|
Definition at line 20 of file JackClient.cpp. Referenced by JackClient::JackClient(), and xx_global_process_xx(). |