Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] Need advice on selecting output device for MP3 playback

[Solved] Need advice on selecting output device for MP3 playback

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    oh3netid
    wrote on last edited by
    #1

    Hello, I would like to play MP3s through separate sound cards that I have on my machine. One is for main output, and another for previewing audio (through headphones).

    Anyway, I noticed that there is no way to select the audio output device used by QMediaPlayer. So, I decided to give QAudioOutput a try. I thought there might be a way to get the output of QAudioDecoder into QAudioOutput. Unfortunately, QAudioDecoder apparently isn't implemented in OSX.

    My questions

    • Is there any other way to select an output device for MP3 playback using only Qt on OSX?
    • Are QAudioDecoder and QAudioOutput even intended to work together? If so, how?
    • Would I be better off using a different library for audio playback?
    1 Reply Last reply
    0
    • O Offline
      O Offline
      oh3netid
      wrote on last edited by
      #2

      For anyone who had the same question...

      I have abandoned QAudioDecoder since it's not implemented on OSX and leaks memory in Windows. Instead, I'm using mpg123 with QAudioOutput and am loving it so far.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved