|
@@ -485,7 +485,8 @@ export const getTrack = async (
|
|
|
if (trackType === "microphone") {
|
|
|
res = (await runtime.rtcClient?.createMicrophoneAudioTrack("RongCloudRTC", {
|
|
|
micphoneId: runtime.selectedMicrophone?.deviceId,
|
|
|
- sampleRate: 44100,
|
|
|
+ sampleRate:
|
|
|
+ Number(localStorage.getItem("sampleRate") || "44100") || 44100,
|
|
|
})) as TrackResult;
|
|
|
} else if (trackType === "microphone2") {
|
|
|
res = (await runtime.rtcClient?.createMicrophoneAudioTrack("RongCloudRTC", {
|