mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Remove prints which make the program hang in Recording with microphone (#6346)
This commit is contained in:
@@ -118,7 +118,6 @@ the recorded stream can be stored into the ``recording`` variable by calling
|
||||
print(recording.mix_rate)
|
||||
print(recording.stereo)
|
||||
var data = recording.get_data()
|
||||
print(data)
|
||||
print(data.size())
|
||||
$AudioStreamPlayer.stream = recording
|
||||
$AudioStreamPlayer.play()
|
||||
@@ -132,7 +131,6 @@ the recorded stream can be stored into the ``recording`` variable by calling
|
||||
GD.Print(_recording.MixRate);
|
||||
GD.Print(_recording.Stereo);
|
||||
byte[] data = _recording.Data;
|
||||
GD.Print(data);
|
||||
GD.Print(data.Length);
|
||||
var audioStreamPlayer = GetNode<AudioStreamPlayer>("AudioStreamPlayer");
|
||||
audioStreamPlayer.Stream = _recording;
|
||||
|
||||
Reference in New Issue
Block a user