audio_stop_recording(channel_index);
Argument | Description |
---|---|
channel_index | The index of the recorder channel to stop. |
Returns: N/A
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.
audio_stop_recording(audio_channel);
The above code tells GameMaker: Studio to stop recording on the given audio channel index.