Ambient ceiling lighting project for Dolby 5.1 sound for PC

It's hard to say if you have got it right or not. If you are trying to write C, there are errors on every line. If you are trying to write pseudo-code, it's not English-like enough to understand what you are trying to achieve.