gaGetVolume(int)

Syntax

gaGetVolume(int)

Example

inputVol = 0

function setup()
    
end

function update()
    inputVol = gaGetVolume(0)
end

function draw()
    gaBackground(0.0,0.1)

    ofSetColor(255)
    ofCircle(OUTPUT_W/2,OUTPUT_H/2,inputVol*OUTPUT_H*3)

end

Description

A realtime reference to the specified channel input volume detected; depending of the sound card selected in main menu GAmuza/Preferences/Audio Streaming tab, you will have a different number of audio input channels. Index start from 0 (if you have four input channels, index will be from 0 to 3).

Parameters

int

Returns

«Float, The audio input volume detected from the specified channel. Normalized in 0.0 - 1.0 range