OSS programming help
Im writing an mp3 player for the console (not has nice has mpg123), and I have a funcion volume, which regulates the /dev/mixer volume. I get the following error:
vol.c: In function `volume':
vol.c:60: invalid operands to binary <<
In that line I have:
lev = (rightchannel << 8) + leftchannel;
All the variables are integers
I've recently done some programming with wav files, and in those cases I used int for the channels.
Yes, I read that the channels have to be integers, thats why I declared the has such
Sorry, didn't see that at the bottom of your original post. If you drop the file in, I'll take a look at it and see if I can reproduce your results and perhaps figure out what the problem is, but trying to do so with a snippet of code is a little beyond me.