I have created localAudioTrack by createBufferSourceAudioTrack({ source: this.audioSource }) from some media-file(audio), then I used method setPlaybackDevice(deviceId) and after call play() playback of the media file still comes from the default device
Below is all the code:
let audio = await Agora.createBufferSourceAudioTrack({ source: 'assets/audio/announcement.wav' });
audio.setPlaybackDevice(this.speaker);
audio.startProcessAudioBuffer();
audio.play();
Any ideas?