I can't hear sound through my headphones.

When I use Brave to listen to music on YouTube, I can’t hear any sound through the headphones that are directly connected to my device. When I disconnect them, I can hear normally from the device’s speakers. When I use other web browsers, everything works fine, and I can hear sound through the headphones. Why can’t I hear anything when using Brave?