Difference between revisions of "RecordingDevice:getData"
(Added dynamic link thing so the function appears as a constructor for SoundData, which is similar to Decoder:decode's article.) |
m (getData -> this function) |
||
Line 2: | Line 2: | ||
Gets all recorded audio [[SoundData]] stored in the device's internal ring buffer. | Gets all recorded audio [[SoundData]] stored in the device's internal ring buffer. | ||
− | The internal ring buffer is cleared when this function is called, so calling it again will only get audio recorded after the previous call. If the device's internal ring buffer completely fills up before | + | The internal ring buffer is cleared when this function is called, so calling it again will only get audio recorded after the previous call. If the device's internal ring buffer completely fills up before this function is called, the oldest data that doesn't fit into the buffer will be lost. |
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === |
Latest revision as of 07:38, 2 December 2019
Available since LÖVE 11.0 |
This function is not supported in earlier versions. |
Gets all recorded audio SoundData stored in the device's internal ring buffer.
The internal ring buffer is cleared when this function is called, so calling it again will only get audio recorded after the previous call. If the device's internal ring buffer completely fills up before this function is called, the oldest data that doesn't fit into the buffer will be lost.
Function
Synopsis
data = RecordingDevice:getData( )
Arguments
None.
Returns
SoundData data (nil)
- The recorded audio data, or nil if the device isn't recording.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info