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. QAudioFormat with CustomData
Forum Updated to NodeBB v4.3 + New Features

QAudioFormat with CustomData

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 668 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.
  • C Offline
    C Offline
    carsten.h
    wrote on last edited by
    #1

    we are building a custom visualization, where I have a data rate of about 650 Samples per second (so 650 Hz) and 8 or 16 Channels. The main idea I have is to use QAudioFormat for this. Any idea if this might work ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Might be a silly question but are these sample actual sound ?
      What kind of visualisation do you have in mind ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        carsten.h
        wrote on last edited by
        #3

        Hi,
        no it is not "sound" but actual data which represents a wave based on a kind of amplitude. So for every sample I have 2 float values (where one is the amplitude to be visualized). So this will be scaled down to be a value between 0 and 1. So here we have a vertical line to be shown where the amplitude will result into the line height. The second float value will converted to a "color".
        Next I have also a sample rate (about 500 per Second) plus 4 or 8 channels. So everything in fact is similar to sound and I was just wondering if I can delegate all this to the existing sound-classes (so QAudioFormat, QAudioIn/Out, QAudioBuffer, etc.) ?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          That rather sounds like an abuse of the API that will make your application harder to understand.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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