你好 这句是 时间状语从句
I 主语
heard 谓语
you 宾语
singing in your room 整体做宾补
in your room 做singing的状语
when I came back 整个句子的状语