RecordSound for Adobe Director
Messages:
| Name | Description |
|---|---|
New | Standard command to create a new instance of an object. |
OpenAudio | Open an audio device with the specified name. If the device name is empty, "", the currently selected device is opened. To find the currently installed audio devices use FindAllAudioCaptureDevices. |
CloseAudio | Closes the connection to an audio capture device that has been opened. You MUST call this if you have used OPenAudio. |
IsAudioOpen | Check to see if an audio device has been opened without error. |
FindAudioCaptureDevices | Every computer can have zero or more audio capture devices. This function finds all the devices and returns then as a list of lists. The number of items in the list is the number of devices. Each sublist contain 2 items, first the name to use in the new command, the second is a description , if any. The PC does have descriptions, the Mac does not. eg [["',"default capture"],["wave 1","CS343.3 capture board"]] |
StartRecording | Initiates a recording with a maximum record time of maxTimeToRecordInMilliseconds. It may be stopped at anytime by using StopRecording |
StopRecording | To stop a recording in progress. All recording upto this point is kept. |
RecordingNow | Once you start a recording this method allows you to see if the recording is still recording, or has reached the maximum duration. If audio is still being recorded this function returns "yes" - else "no" |
StartGetInputLevel | If you want to monitor the sound input level when not recording you have to switch it on with this message. |
StopGetInputLevel | Stop the monitoring of the input audio level |
GetInputLevel | This allows you to access the current level of the sound being recorded. The message returns a list of items: #left: the value of the audio on the left channel #right: the level of the audio on the right channel #error: "ok" or an error message |
IsGsilActive | Query if the GetSoundLevel is currently active. |
| Name | Description |
|---|---|
GetFormat | Obtains the current audio format. Returns a property list with the following properties #SampleSize - the sample size in bits per sample, normally 8 or 16 #NumberOfChannels - the current number of channels being recorded, normally 1 or 2 #CompressionType - a 4 character string to describe the compression being used "" = none #SampleRate - the number of samples per second, normally 11.025, 22.01 or 44.1 |
SetFormat | Sets the current audio format. Returns a property list with the following properties #SampleSize - the sample size in bits per sample, normally 8 or 16 #NumberOfChannels - the current number of channels being recorded, normally 1 or 2 #CompressionType - a 4 character string to describe the compression being used "" = none #SampleRate - the number of samples per second, normally 11.025, 22.01 or 44.1 |
SetSampleRate | There are various parameters that control the quality of the recorded sound. The sample rate sets the number of times per second the current level of the input is checked. The more, the better quality - but requires more memory. You can pass any value, but only certain standards are supported by most computers. Standard ones are: 11025, 22050 and 44100 Note: Will be withdrawn in the near future, please use SetFormat in new projects |
SetBitsPerSample | There are various parameters that control the quality of the recorded sound. The bits per sample controls the resolution of the amplitude, or size, of the signal. There are 2 valid values, 8 and 16. The 8 bit value divides the amplitude into 256 steps and the 16 bit into 65536. The more, the better quality - but requires more memory. Note: Will be withdrawn in the near future, please use SetFormat in new projects |
SetChannels | There are various parameters that control the quality of the recorded sound.The SetChannels command alows you to control the number of audio channels to record. Mono is 1, stereo is 2 and quad is 4. Note: Will be withdrawn in the near future, please use SetFormat in new projects |
| Name | Description |
|---|---|
PlaySound | Play a sound that has been recorded |
PlayStop | Cancel the playback of a sound that was started with PlaySound |
IsSoundPlaying | Checks is a sound is playing that was started with PlayStart |
| Name | Description |
|---|---|
SaveAsMember | Saves the recorded information into a cast member for playback and manipulation by Director Lingo commands. If the the member does not exist, it is created - if one exists, it is replaced. To play sound use Director lingo puppetsound. |
SaveAsFile | Saves the recorded information into the named file. On Windows this is in WAV format and on the Macintosh it is an AIFF file. To play the sound use Director Lingo, sound playfile. |
| Name | Description |
|---|---|
ShowErrorsAsDialogs | Controls if error dialogs are shwn in addtion to the error return. Turn this off is you want your problem to handle errors without informing the user |
GetVersionString | Obtain the version number of the xtra as a string. This may be requested when you are reporting bugs or interacting with PhysicalBits support. |
GetLicensetype | Returns the license type for this xtra. #Author, #Demo or #Full |
GetDemoDaysRemaining | Returns the number of days remaining on a demo license. Returns 0 if authoring license, or a big number if a full license. |
privateInstance | Private function |
privateGlobal | Private |
Detailed Useage Information:
