Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

AVRecorder.AudioDeviceInfo

Queries details about audio device.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
AVRecorder 6.1 Yes Yes No No Yes

MBS( "AVRecorder.AudioDeviceInfo"; AVSession; Index; Selector )

Parameters

Parameter Description Example value
AVSession The ID for the AVRecorder session as returned by AVRecorder.Init. $AVSession
Index The index of the device from 0 to AVRecorder.AudioDeviceCount-1 or the name or ID of the device. 0
Selector Which value to return.
Can be ID, Name, Description, Index.
On Mac can also be manufacturer, modelID, transportType, connected, inUseByAnotherApplication or suspended.
"Name"

Result

Returns value or error.

Description

Queries details about audio device.

Examples

Enumerate audio devices:

# list audio devices
Set Variable [$count; Value:MBS("AVRecorder.AudioDeviceCount"; $recorder)]
If [$count > 0]
    Set Variable [$index; Value:0]
    Loop
        # next
        New Record/Request
        Set Field [AVRecorder Devices::Index; $index]
        Set Field [AVRecorder Devices::ID; MBS("AVRecorder.AudioDeviceInfo"; $recorder; $index; "ID")]
        Set Field [AVRecorder Devices::Name; MBS("AVRecorder.AudioDeviceInfo"; $recorder; $index; "Name")]
        Set Field [AVRecorder Devices::Description; MBS("AVRecorder.AudioDeviceInfo"; $recorder; $index; "Description")]
        If [MBS("SystemInfo.isMacOSX")]
            Set Field [AVRecorder Devices::Manufacturer; MBS("AVRecorder.AudioDeviceInfo"; $recorder; $index; "manufacturer")]
            Set Field [AVRecorder Devices::ModelID; MBS("AVRecorder.AudioDeviceInfo"; $recorder; $index; "modelID")]
            Set Field [AVRecorder Devices::TransportType; MBS("AVRecorder.AudioDeviceInfo"; $recorder; $index; "transportType")]
            Set Field [AVRecorder Devices::Connected; MBS("AVRecorder.AudioDeviceInfo"; $recorder; $index; "connected")]
            Set Field [AVRecorder Devices::inUseByAnotherApplication; MBS("AVRecorder.AudioDeviceInfo"; $recorder; $index; "inUseByAnotherApplication")]
            Set Field [AVRecorder Devices::suspended; MBS("AVRecorder.AudioDeviceInfo"; $recorder; $index; "suspended")]
        End If
        Set Field [AVRecorder Devices::Type; "Audio"]
        Commit Records/Requests []
        Set Variable [$index; Value:$index + 1]
        Exit Loop If [$count = $index]
    End Loop
End If

See also

Example Databases


AVRecorder.AudioDeviceCount   -   AVRecorder.CaptureStillPhoto

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins