Here is my program, it mixes audio files. But I can't seem to get it working for 2 Channel or stereo files. Any Ideas
#include<stdio.h>
#include<sndfile.h>
#include<stdlib.h>
#include<math.h>...
Type: Posts; User: Taper
Here is my program, it mixes audio files. But I can't seem to get it working for 2 Channel or stereo files. Any Ideas
#include<stdio.h>
#include<sndfile.h>
#include<stdlib.h>
#include<math.h>...
Ahhhhhhhh
Thank you now I see.
What exactly does
float* variable;
do, I think its a pointer to a float but I've seen it used like an array!
for(i=0; i<512; i++)
Butt, joke, me...
edit:
Thanks rags
For all the trouble i went to in installing gcc it hasn't impressed me so far i should know about these warnings!!!
Question if i use Borland C++ will i be able to program in C normally and will...
No warnings at all ????????? I'm using gcc from the command line and notepad :-/ Can you explain what you just replied with sorry i'm a bit of a newbie to this C lark.
Ok I deleted my last post because i just realised that 'return 0;' should not be in the last else its part of my debugging.
Even when I remove 'const' it still retruns -1
here is the rest...
This function that I have returns '-1' whenever it enters the last else can anyone tell me why so I can go about fixing it?? (Hope Indentation is correct)
Perhaps the fucntion wants to return...
Point taken mate. I will indent correctly before posting from now on.
Oh anyone any idea why, when the function calls itself again it doesn't return what the user entered?
Ok thanks for your help everyone I'll try to implement what you've all said but I'll need to understand it first. I probably should have mentioned that I'm a begginer to C and I'm used to programming...
Ok just realised a big mistake I don't need the for loop in convert or the variable 'i' as I am just passing the string to it each time it is typed in. The code now looks like:
...
Ok I'm trying to make strings correspond to numbers but I having problems getting the information to and from the function convert (see code below). Can Anyone tell me what I'm doing wrong? I'm...