Difference between revisions of "Microphone"

From GiderosMobile
Line 9: Line 9:
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== <translate>Methods</translate> ===
 
=== <translate>Methods</translate> ===
[[Special:MyLanguage/Microphone.new|Microphone.new]] ''<translate>Creates a new Microphone object.</translate>''<br/><!-- GIDEROSMTD:Microphone.new -->
+
[[Special:MyLanguage/Microphone.new|Microphone.new]] ''<translate>Creates a new Microphone object.</translate>''<br/><!-- GIDEROSMTD:Microphone.new(deviceName,sampleRate,numChannels,bitsPerSample,quality) Creates a new Microphone object. -->
[[Special:MyLanguage/Microphone:setOutputFile|Microphone:setOutputFile]] ''<translate>Sets the output file</translate>''<br/><!-- GIDEROSMTD:Microphone:setOutputFile -->
+
[[Special:MyLanguage/Microphone:setOutputFile|Microphone:setOutputFile]] ''<translate>Sets the output file</translate>''<br/><!-- GIDEROSMTD:Microphone:setOutputFile(fileName) Sets the output file -->
[[Special:MyLanguage/Microphone:start|Microphone:start]] ''<translate>Start recording with device.</translate>''<br/><!-- GIDEROSMTD:Microphone:start -->
+
[[Special:MyLanguage/Microphone:start|Microphone:start]] ''<translate>Start recording with device.</translate>''<br/><!-- GIDEROSMTD:Microphone:start() Start recording with device. -->
[[Special:MyLanguage/Microphone:stop|Microphone:stop]] ''<translate>Stop recording</translate>''<br/><!-- GIDEROSMTD:Microphone:stop -->
+
[[Special:MyLanguage/Microphone:stop|Microphone:stop]] ''<translate>Stop recording</translate>''<br/><!-- GIDEROSMTD:Microphone:stop() Stop recording -->
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== <translate>Events</translate> ===
 
=== <translate>Events</translate> ===
[[Special:MyLanguage/Event.DATA_AVAILABLE|Event.DATA_AVAILABLE]]<br/><!-- GIDEROSEVT:Event.DATA_AVAILABLE -->
+
[[Special:MyLanguage/Event.DATA_AVAILABLE|Event.DATA_AVAILABLE]]<br/><!-- GIDEROSEVT:Event.DATA_AVAILABLE dataAvailable-->
 
=== <translate>Constants</translate> ===
 
=== <translate>Constants</translate> ===
 
|}
 
|}

Revision as of 15:32, 13 September 2018


Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.png
Available since: Gideros 2013.06

Description

Use this plugin to record to an audio clip using a connected microphone.

Methods

Microphone.new Creates a new Microphone object.
Microphone:setOutputFile Sets the output file
Microphone:start Start recording with device.
Microphone:stop Stop recording

Events

Event.DATA_AVAILABLE

Constants