Agora Java API Reference for Android
io.agora.rtc.audio.AgoraRhythmPlayerConfig Class Reference

Public Attributes

int beatsPerMeasure
 
int beatsPerMinute
 
boolean publish
 

Detailed Description

The metronome configuration, which is set in startRhythmPlayer or configRhythmPlayer.

Member Data Documentation

◆ beatsPerMeasure

int io.agora.rtc.audio.AgoraRhythmPlayerConfig.beatsPerMeasure

The number of beats per measure. The range is 1 to 9. The default value is 4, which means that each measure contains one downbeat and three upbeats.

◆ beatsPerMinute

int io.agora.rtc.audio.AgoraRhythmPlayerConfig.beatsPerMinute

Tempo (beats per minute). The range is 60 to 360. The default value is 60, which means that the metronome plays 60 beats in one minute.

◆ publish

boolean io.agora.rtc.audio.AgoraRhythmPlayerConfig.publish

Whether to publish the sound of the metronome to remote users:

  • true: (Default) Publish. Both the local user and remote users can hear the metronome.
  • false: Do not publish. Only the local user can hear the metronome.