The surgeons had to keep Brooke, 18, awake so they knew they were not damaging his brain.
"It was important to keep him awake while I worked in a delicate area. The music kept him relaxed," Head neurosurgeon Andrew McEvoy said.
"The tumour was in a very difficult place that controls movement in his body and we had to ensure we didn't damage the surrounding area. A few millimetres too far could have paralysed him, so I let him listen to his iPod," he added.
To ensure the boy was not in pain doctors also kept talking to him all through the surgery.
"The music made the operation much easier to cope with and McEvoy talked to me all the way through," said Brooke.