Below is a better description!!!
Below is a better description!!!
Last edited by bobthebullet990; 01-07-2007 at 06:53 PM.
Many junglists take pride in their belongin to what may be referred to as a globalised drum & bass subculture, as a subculture though, it is not nearly as distinct at gothic or punk!
To put it better...
But this is not working! ...there is sound in the right channel output, but zero in the left!Code:unsigned int flanged=0; short int x=0; short int y=0; short int inputL, inputR; inputL=readAudio(); inputR=readAudio(); flanged = inputL << 16; flanged |= inputR; x = flanged >> 16; y &= flanged; writeAudio(x); writeAudio(y);
Many junglists take pride in their belongin to what may be referred to as a globalised drum & bass subculture, as a subculture though, it is not nearly as distinct at gothic or punk!
Ha!!! ...Im being an idiot (probably because i've been staring at my screen for over 10hours now)!!!
...why Im trying to extract information and'ing with the variable I don't have a clue!!!! wot was i thinking!!!! ...well... for anyone that would ever want to do this! here is the solution!
Code:short int inputL; short int inputR; unsigned int flanged=0; short int x=0; short int y=0; //stuff the two values into the int flanged = inputL<<16; flanged = inputR | flanged; // extract the information x = flanged >> 16; y = flanged & 0x00000000FFFFFFFF; //print result printf("L: %5d, R: %5d, x: %5d, y: %5d\n",inputL, inputR, x, y);
Many junglists take pride in their belongin to what may be referred to as a globalised drum & bass subculture, as a subculture though, it is not nearly as distinct at gothic or punk!
You typed twice as many 0's and F's as you should have for that.