Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Changing audio playback device  (Read 2726 times)

0 Members and 1 Guest are viewing this topic.

c0der23

  • Newbie
  • *
  • Posts: 1
    • View Profile
Changing audio playback device
« on: February 15, 2023, 10:23:41 am »
I am trying to play a sound to 2 different audio devices at once. All I need to do is play the sound through a specific audio device. Is this possible? Would there be any way to make it possible?
I am on Windows is that makes a difference.

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Changing audio playback device
« Reply #1 on: February 15, 2023, 12:54:15 pm »
I've looked at this before but it seemed that it can only play on the device already chosen by the user, unlike recording where you can choose which device to use.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Changing audio playback device
« Reply #2 on: February 17, 2023, 08:54:45 am »
You can't select an audio playback device as Hapax already pointed out.

Additionally, I don't think it's necessarily possible to play through two different audio devices at once, at least I've never seen an application do that.
Might be possible with something like Virtual Audio Cable
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Changing audio playback device
« Reply #3 on: February 20, 2023, 05:15:06 am »
Some audio-focused software can play audio on multiple devices at once; it's required for some forms of sound/music production.
This is pretty deep software though, quite difficult to actually do (and the software might not actually be able to see that there are multiple devices) and those sorts of hardware setups can be quite rare.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*