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. QAudioInput and sample rates on OS-X
Forum Updated to NodeBB v4.3 + New Features

QAudioInput and sample rates on OS-X

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 767 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.
  • B Offline
    B Offline
    bsomervi
    wrote on last edited by
    #1

    Hi,

    we are using QAudioInput to read live audio from a codec at 12kHz sample frequency. On Windows and *nix this works just fine as I believe both the Microsoft Waveform Audio Interface and PulseAudio automatically re-sample (in this case a trivial function from 48kHz to 12kHz).

    On OS-X selecting 12kHz as a sample frequency doesn't work, in fact only the sample frequencies directly supported by the hardware directly seem to be supported. Looking at the Mac docs it seems that to get equivalent functionality the AUConverter module needs to be inserted into the audio stack using the AUGraph module to make a new Audio Unit with rate conversion abilities.

    Am I missing something here or do we have to modify our application to use 48kHz sample frequency and do the re-sampling ourselves.

    TIA
    Bill.

    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