title: discord.py and ffmpeg: Play a sound effect while playing music
body: <p>I would like to play a sound effect while playing music in a vc using discord.py and ffmpeg. I know you cannot play more than one audio source at a time, so instead I am trying to pause the music, play the sound effect and continue the music.</p>
  <p>This is what I've come up with so far, but because I am playing the sound effect, the resume() method no longer works after the pause().</p>
  <pre><code>@commands.command()
      async def sfx(self, ctx):
          try:
              voice = await ctx.author.voice.channel.connect()
          except:
              voice = ctx.guild.voice_client
          try:
              voice.pause()
              # voice.play(discord.FFmpegPCMAudio('./media/sfx/notification.mp3'))
          except:
              voice.pause()
              # voice.play(discord.FFmpegPCMAudio(executable=r&quot;C:\Users\josh\Programming\Discord\ffmpeg\bin\ffmpeg.exe&quot;, source='./media/sfx/notification.mp3'))
          guild = self.client.get_guild(752756902525403156)
          member = guild.get_member(876292773639233596)
          print(member.activities[0].name)
          await asyncio.sleep(1)
          voice.resume()
          if member.activities[0].name == &quot;Not playing music&quot;:
              await voice.disconnect()
  </code></pre>