[LFO]
- optimized Sync_mod() - vectorized Sync_processV() git-svn-id: http://moon:8086/svn/software/trunk/projects/JaySynth@730 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
+5
-4
@@ -63,12 +63,12 @@ typedef struct _ssync_t
|
||||
synth_float_t accu;
|
||||
|
||||
int phase_update;
|
||||
struct _slfo_t *pLfo;
|
||||
|
||||
} sync_t;
|
||||
|
||||
typedef struct _ssync_result_t
|
||||
{
|
||||
synth_float_t phase_int;
|
||||
synth_float_t phase;
|
||||
int is_cycle_start;
|
||||
|
||||
@@ -81,10 +81,9 @@ extern "C" {
|
||||
// --------------------------------------------------------------
|
||||
// Exported functions
|
||||
// --------------------------------------------------------------
|
||||
void Sync_init(sync_t *pObj, struct _slfo_t *pLfo);
|
||||
void Sync_init(sync_t *pObj);
|
||||
void Sync_phase_update(sync_t *pObj, synth_float_t phase_ref);
|
||||
sync_result_t Sync_process(sync_t *pObj, synth_float_t omega_base);
|
||||
synth_float_t Sync_mod(synth_float_t x, synth_float_t y);
|
||||
synth_float_t Sync_mod(synth_float_t x);
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
@@ -127,6 +126,8 @@ void LFO_Reset(lfo_t *pObj, synth_float_t initial_phase);
|
||||
void LFO_sync(lfo_t *pObj, synth_float_t phase);
|
||||
void LFO_Param2Set(lfo_t *pObj, UINT32 type, synth_float_t value);
|
||||
synth_float_t* LFO_ProcessDataV(lfo_t *pObj, UINT32 len);
|
||||
void Sync_processV(lfo_t *pObj, int len);
|
||||
sync_result_t Sync_process(lfo_t *pObj);
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user