{{newin|[[11.0]]|110|type=function}}
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 ===
<source lang="lua">
data = RecordingDevice:getData( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|SoundData|data (nil)|The recorded audio data, or nil if the device isn't recording.}}
== See Also ==
* [[parent::RecordingDevice]]
* [[RecordingDevice:start]]
* [[RecordingDevice:stop]]
* [[Constructs::SoundData]]
[[Category:Functions]]
{{#set:Description=Gets all recorded audio [[SoundData]] stored in the device's internal ring buffer.}}
== Other Languages ==
{{i18n|RecordingDevice:getData}}