audio_stop_recording

Add audio to the audio queue from a buffer.

Syntax:

audio_stop_recording(channel_index);


Argument Description
channel_index The index of the recorder channel to stop.


Returns: N/A


Description

This function will stop recording on the given recorder channel (the channel index is returned when you call the function audio_start_recording). When you stop recording, no further Audio Recording Asynchronous Events will be triggered for the given recorder channel, so you would normally use this function in the actual asynchronous event to ensure that you have captured all the data.

NOTE: Recording audio is currently only available currently for the Windows, Xbox One, PlayStation 4 and HTML5 target modules.


Example:

audio_stop_recording(audio_channel);

The above code tells GameMaker: Studio to stop recording on the given audio channel index.


Back: Audio Buffers
Next: audio_get_recorder_count
© Copyright YoYo Games Ltd. 2015 All Rights Reserved