Media_RecordSoundFormatDialog { ( settings ) }
Media_RecordSoundFormatDialog gives you the ability to specify options for audio recording such as input device, number of audio channels, sampling rate or sample bit resolution. These options can be passed to the Media_RecordSoundStart function.
Parameter | Description |
---|---|
settings | Optional parameter. Initial settings for the dialog. |
Returns
The function returns a platform-specific configuration data. On Mac, the output is an XML block such as:
<recording-configuration>
<input-device-id>AppleHDAEngineInput:1F,3,0,1,0:1</input-device-id>
<input-device-name>Built-in Microphone</input-device-name>
<file-format-id>6d346166</file-format-id>
<audio-compression-id>616c6163</audio-compression-id>
<sample-rate>44100</sample-rate>
<sample-size>16</sample-size>
<number-of-channels>2</number-of-channels>
</recording-configuration>
On Windows the output is also an XML block with hexadecimal data.
Though it is possible to change either of the blocks, changing them is not recommended and could result in unpredictable behavior.
Examples
Get initial recording settings:
Set Field [ MyTable::InitialRecordingSettings ;
Media_RecordSoundFormatDialog ]
Update initial recording settings:
Set Field [ MyTable::InitialRecordingSettings ;
Media_RecordSoundFormatDialog (
MyTable::InitialRecordingSettings
) ]