I currently have something like this. Player is supposed to be something like pseudo winamp, and everything is staged this way now.

Qt Code:
  1. player = new QMediaPlayer; //creating QMediaPlayer instance
  2. probe = new QAudioProbe;
  3. probe->setSource(player);
  4.  
  5. connect(probe, SIGNAL(audioBufferProbed(QAudioBuffer)), this, SLOT(processBuffer(QAudioBuffer)));
To copy to clipboard, switch view to plain text mode 

From what I understand - when probe has it's internal buffer full it emits it as signal which I catch with adequate slot function, which would look like that:

Qt Code:
  1. void qtplayer::processBuffer(QAudioBuffer buffer)
  2. {
  3.  
  4. // do something with data in buffer
  5. // I want for example copy insides of this buffer to Vector of Ints, how can I do that?
  6.  
  7. }
To copy to clipboard, switch view to plain text mode 

Am I right to this point? I assume that when I use QMediaPlayer, then it uses native system audio format (in my case 44100 Hz, 16 bit, 2 channel), so I assume that probe gets exaclty same format of audio. But what about buffer size? I want probe to get for example 44100 samples of audio, which would be 1 second, can I change that? How do I even know how big is it's internal buffer?