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
| Name | Summary | Syntax |
|---|---|---|
| mergMicrophoneIsAvailable | This handler returns true if there is a microphone available to use | mergMicrophoneIsAvailable() |
| 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() |
| mergMicrophoneGetAudioFormat | Get the audio format to output | mergMicrophoneGetAudioFormat() |
| mergMicrophoneGetTargetBitRate | Get the target bit rate to use formats that have such a notion specified in combined (all changes) bits per second | mergMicrophoneGetTargetBitRate() |
| mergMicrophoneGetAudioQuality | Get the audio quality level to use when encoding | mergMicrophoneGetAudioQuality() |
| mergMicrophoneIsRecording | This handler returns true if recording is currently in progress and false if it is not | mergMicrophoneIsRecording() |
| mergMicrophoneAveragePower | Return the average power reading in decibels | mergMicrophoneAveragePower([<pChannel>]) |
| mergMicrophonePeakPower | Return the peak power reading in decibels | mergMicrophonePeakPower([<pChannel>]) |
Command
| Name | Summary | Syntax |
|---|---|---|
| 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> |
| mergMicrophoneSetAudioFormat | Set the audio format to output | mergMicrophoneSetAudioFormat <formatName> |
| mergMicrophoneSetTargetBitRate | Set the target bit rate to use formats that have such a notion specified in combined (all changes) bits per second | mergMicrophoneSetTargetBitRate <bitRate> |
| mergMicrophoneSetAudioQuality | Set the audio quality level to use when encoding | mergMicrophoneSetAudioQuality <audioQuality> |
| 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 |