Mercurial > hg > beaglert
comparison projects/heavy/hello-world/SignalRPole.c @ 160:5bcf04234f80 heavy-updated
- added -std=c99 to Makefile for user-supplied C files (required for heavy files)
- changed heavy core render.cpp file to use latest API and removed all redundant functions (e.g. foleyDesigner/touchkey stuff)
- use build_pd.sh to compile and run pd files (-h for usage instructions)
author | chnrx <chris.heinrichs@gmail.com> |
---|---|
date | Thu, 05 Nov 2015 18:58:26 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
159:1e7db6610600 | 160:5bcf04234f80 |
---|---|
1 /** | |
2 * Copyright (c) 2014, 2015, Enzien Audio Ltd. | |
3 * | |
4 * Permission to use, copy, modify, and/or distribute this software for any | |
5 * purpose with or without fee is hereby granted, provided that the above | |
6 * copyright notice and this permission notice appear in all copies. | |
7 * | |
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | |
9 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | |
10 * AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
11 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | |
12 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | |
13 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | |
14 * PERFORMANCE OF THIS SOFTWARE. | |
15 */ | |
16 | |
17 #include "SignalRPole.h" | |
18 | |
19 hv_size_t sRPole_init(SignalRPole *o) { | |
20 #if HV_SIMD_AVX | |
21 sDel1_init(&o->sDel1_fxiLN); | |
22 sDel1_init(&o->sDel1_kjkpV); | |
23 sDel1_init(&o->sDel1_dkIWc); | |
24 sDel1_init(&o->sDel1_bVeoW); | |
25 sDel1_init(&o->sDel1_PulZn); | |
26 sDel1_init(&o->sDel1_yTFig); | |
27 sDel1_init(&o->sDel1_Is9Qf); | |
28 sDel1_init(&o->sDel1_LIyNt); | |
29 sDel1_init(&o->sDel1_VqpU3); | |
30 sDel1_init(&o->sDel1_ZVYeg); | |
31 sDel1_init(&o->sDel1_IVAZh); | |
32 sDel1_init(&o->sDel1_F8WrY); | |
33 sDel1_init(&o->sDel1_rkFMy); | |
34 sDel1_init(&o->sDel1_BeqSK); | |
35 __hv_zero_f(&o->ym); | |
36 #elif HV_SIMD_SSE || HV_SIMD_NEON | |
37 sDel1_init(&o->sDel1_i8Twk); | |
38 sDel1_init(&o->sDel1_KYibU); | |
39 sDel1_init(&o->sDel1_spa5V); | |
40 sDel1_init(&o->sDel1_3HXdb); | |
41 sDel1_init(&o->sDel1_Aj1oK); | |
42 sDel1_init(&o->sDel1_jNX1g); | |
43 __hv_zero_f(&o->ym); | |
44 #else | |
45 o->ym = 0.0f; | |
46 #endif | |
47 return 0; | |
48 } | |
49 | |
50 void sRPole_onMessage(HvBase *_c, SignalRPole *o, int letIn, const HvMessage *m) { | |
51 // TODO | |
52 } |