No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
Hello! I'm having a very difficult time with this problem. What I'm trying to do is generate a sine wave for a specific frequency and output it as raw pcm data to a file. The sine wave is generated as follows: [code] samples[i]=static_cast<int>(32767 * amplitude * sin(static_cast<double>(i)*scale) ); [/code] where …
Suppose I have a class, Animal, that contains the virtual method eat(). Now suppose Dog is derived from Animal, and also implements eat(). Now somewhere else, I have a class Barn with a feed method that takes Animal& as a parameter. How can I force class Barn to call Dog's …
set "-masm=intel" and compile this: [code]void flipIt(void* buffer) { static void* b asm("b") = buffer;// Ukazatel na buffer asm(// ASM kód "mov ecx, 256*256;" "mov ebx, b;" "label:;" "mov al, [ebx+0];" "mov ah, [ebx+2];" "mov [ebx+2], al;" "mov [ebx+0], ah;" "add ebx, 3;" "dec ecx;" "jnz label;" ); }[/code] AT&T …
The End.
fluidDelusions