Generator de sunete - optimizare consum resurse
Last Updated: Mar 18 2023 11:51, Started by
GabyF
, Jan 24 2023 12:00
·
0
#37
Posted 18 March 2023 - 11:31
executabilul ramane mai mic dar programul nu mai face nimic din ce ti-ai propus
#include <stdio.h> #include <math.h> #define CHS 2 #define VOICES 16 #define PI 3.141592653589793238 struct OSC { inline void Osc(double &result, double &phase, double phase_add, double vol) {result+=0.0;} }; int main () { double out = 0, phase = 0; OSC o; o.Osc(out, phase, 0.3255, 0.9); printf("out: %f\n", out); return 0; }sau chiar https://godbolt.org/z/n6fT4zs3r #include <stdio.h> int main() { float value=2.0; printf("%f\n",value); return 0; } Edited by MarianG, 18 March 2023 - 11:41. |
#38
Posted 18 March 2023 - 11:51
Anunturi
Bun venit pe Forumul Softpedia!
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users