Skip to main content

mergMicrophone

Type

library

Description

mergMicrophone is a basic wrapper around the iOS AVAudioRecorder class, enabling audio recording to be performed in iOS applications. It is a modified version of rremicrophone which is provided as part of the LiveCode SDK. The rremicrophone license requires modified source versions to be distributed without the rre handler prefix or com_runrev class prefix. The changes ar licensed under the extremely permissive Boost Software License http://www.boost.org/LICENSE_1_0.txt

Associated Syntax

Function

NameSummarySyntax
mergMicrophoneIsAvailableThis handler returns true if there is a microphone available to usemergMicrophoneIsAvailable()
mergMicrophoneGetNumberOfChannelsGet the number of channels to record (either mono - 1 channel, or stereo - 2 channels) mergMicrophoneGetNumberOfChannels()
mergMicrophoneGetSampleRateGet the sample rate measure in hertz (number of samples to take per second - 44100 is CD quality) mergMicrophoneGetSampleRate()
mergMicrophoneGetAudioFormatGet the audio format to outputmergMicrophoneGetAudioFormat()
mergMicrophoneGetTargetBitRateGet the target bit rate to use formats that have such a notion specified in combined (all changes) bits per second mergMicrophoneGetTargetBitRate()
mergMicrophoneGetAudioQualityGet the audio quality level to use when encodingmergMicrophoneGetAudioQuality()
mergMicrophoneIsRecordingThis handler returns true if recording is currently in progress and false if it is not mergMicrophoneIsRecording()
mergMicrophoneAveragePowerReturn the average power reading in decibelsmergMicrophoneAveragePower([<pChannel>])
mergMicrophonePeakPowerReturn the peak power reading in decibelsmergMicrophonePeakPower([<pChannel>])

Command

NameSummarySyntax
mergMicrophoneSetNumberOfChannelsSet the number of channels to record (either mono - 1 channel, or stereo - 2 channels) mergMicrophoneSetNumberOfChannels <channelCount>
mergMicrophoneSetSampleRateSet the sample rate measure in hertz (number of samples to take per second - 44100 is CD quality) mergMicrophoneSetSampleRate <sampleRate>
mergMicrophoneSetAudioFormatSet the audio format to outputmergMicrophoneSetAudioFormat <formatName>
mergMicrophoneSetTargetBitRateSet the target bit rate to use formats that have such a notion specified in combined (all changes) bits per second mergMicrophoneSetTargetBitRate <bitRate>
mergMicrophoneSetAudioQualitySet the audio quality level to use when encodingmergMicrophoneSetAudioQuality <audioQuality>
mergMicrophoneStartRecordingThis handler starts recording audio using any previously configured settings to the given output file mergMicrophoneStartRecording <filename>
mergMicrophoneStopRecordingThis handler stop any current recording operationmergMicrophoneStopRecording
Thank you for your feedback!

Was this page helpful?