mergMicrophone

Typelibrary
DictionaryLCS
LibraryLiveCode Script
Associationsmergmicrophone
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

TypeNameSummarySyntax
commandmergMicrophoneSetAudioFormat

Set the audio format to output

mergMicrophoneSetAudioFormat <formatName>

- - -mergMicrophoneSetAudioQuality

Set the audio quality level to use when encoding

mergMicrophoneSetAudioQuality <audioQuality>

- - -mergMicrophoneSetNumberOfChannels

Set the number of channels to record (either mono - 1 channel, or stereo - 2 channels)

mergMicrophoneSetNumberOfChannels <channelCount>

- - -mergMicrophoneSetSampleRate

Set the sample rate measure in hertz (number of samples to take per second - 44100 is CD quality)

mergMicrophoneSetSampleRate <sampleRate>

- - -mergMicrophoneSetTargetBitRate

Set the target bit rate to use formats that have such a notion specified in combined (all changes) bits per second

mergMicrophoneSetTargetBitRate <bitRate>

- - -mergMicrophoneStartRecording

This handler starts recording audio using any previously configured settings to the given output file

mergMicrophoneStartRecording <filename>

- - -mergMicrophoneStopRecording

This handler stop any current recording operation

mergMicrophoneStopRecording

functionmergMicrophoneAveragePower

Return the average power reading in decibels

mergMicrophoneAveragePower([<pChannel>])

- - -mergMicrophoneGetAudioFormat

Get the audio format to output

mergMicrophoneGetAudioFormat()

- - -mergMicrophoneGetAudioQuality

Get the audio quality level to use when encoding

mergMicrophoneGetAudioQuality()

- - -mergMicrophoneGetNumberOfChannels

Get the number of channels to record (either mono - 1 channel, or stereo - 2 channels)

mergMicrophoneGetNumberOfChannels()

- - -mergMicrophoneGetSampleRate

Get the sample rate measure in hertz (number of samples to take per second - 44100 is CD quality)

mergMicrophoneGetSampleRate()

- - -mergMicrophoneGetTargetBitRate

Get the target bit rate to use formats that have such a notion specified in combined (all changes) bits per second

mergMicrophoneGetTargetBitRate()

- - -mergMicrophoneIsAvailable

This handler returns true if there is a microphone available to use

mergMicrophoneIsAvailable()

- - -mergMicrophoneIsRecording

This handler returns true if recording is currently in progress and false if it is not

mergMicrophoneIsRecording()

- - -mergMicrophonePeakPower

Return the peak power reading in decibels

mergMicrophonePeakPower([<pChannel>])

librarymergMicrophone

mergMicrophonePeakPower([<pChannel>])