Skip to content

Commit ad81dfe

Browse files
authored
Update README.md to include audio source type (#78)
this prevents local microphone feedback
1 parent 8789875 commit ad81dfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ var source = audObject.AddComponent<AudioSource>();
9191
source.clip = Microphone.Start(Microphone.devices[0], true, 2, (int)RtcAudioSource.DefaultSampleRate);
9292
source.loop = true;
9393

94-
var rtcSource = new RtcAudioSource(source);
94+
var rtcSource = new RtcAudioSource(source, RtcAudioSourceType.AudioSourceMicrophone);
9595
var track = LocalAudioTrack.CreateAudioTrack("my-audio-track", rtcSource, room);
9696

9797
var options = new TrackPublishOptions();

0 commit comments

Comments
 (0)