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. Redirect Audio Output to Audio Input

Redirect Audio Output to Audio Input

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 3.4k Views
  • 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.
  • V Offline
    V Offline
    Voronar
    wrote on last edited by
    #1

    Hello everybody.

    I have the task to redirect Audio Output Signal from USB Audio Interface to Input Audio Signal which i'll be recording and playing with Qt MultiTrack Application. For more information about the my vision of this task see the scheme below.
    !https://lh4.googleusercontent.com/-bZhwO5WVW7I/UpmqSrC-TGI/AAAAAAAAAF4/X9U9aXkJUCA/w923-h694-no/LoopQA.bmp(Scheme)!
    Are there the Qt сlasses which can help me? I tried to use the QAudioRecorder, but it class uses as input device only real input device like Realtek HD Audio Input for example.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vidar
      wrote on last edited by
      #2

      Well, I guess you would have to write an Audio Driver for your USB device. Or directly access the ring buffer or other kind of memory that your USB device provides inside your Qt application without using the QAudioRecorder?

      1 Reply Last reply
      0
      • V Offline
        V Offline
        Voronar
        wrote on last edited by
        #3

        At the moment I'm not having the external USB audio interface (I'm planning buy it). I'm realizing experiments with standard internal sound cards like Realtek or same(I didn't think the sound card name on my home pc).
        I said that I tried to use QAudioRecorder to record output sound from Windows Media Player(it is like the StereoMix mode on Windows OS). For that I had pointed the input device for QAudioRecorder like Realtek Audio Output but it hadn't worked.
        I think there is another method to do it. Vidar, you said something about ring buffer. That is this? Does Qt provide an access to ring buffer?

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vidar
          wrote on last edited by
          #4

          Hi Voronar,
          without special support from your usb device I think that the StereoMix would be the solution. This should be available as Input Device in QT. Did you enable the StereoMix "Device" inside Windows?

          If you want to do more specialized stuff, you will probably directly have to access a lower layer API, such as WASAPI, but then you'd have to use non-QT APIs, such as PortAudio. However, I don't have experiences with those "loopback modes" and cannot say, if they really provide more features than the "Stereo Mix".
          http://msdn.microsoft.com/en-us/library/windows/desktop/dd316551(v=vs.85).aspx

          1 Reply Last reply
          0
          • V Offline
            V Offline
            Voronar
            wrote on last edited by
            #5

            Thank you, Vidar. I'll try to enable the "Stereo Mix" on my Windows 7 and then I will see a result. If I don't see wanted result i'll try to use WASAPI or PortAudio.

            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