Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #198 from book000/fix/audio-queue
Browse files Browse the repository at this point in the history
fix: 音声をキュー挿入するかどうかの処理を調整
  • Loading branch information
yuuahp authored Jan 22, 2023
2 parents a2c8be6 + 6104cfb commit 4c39ef6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public TrackScheduler(AudioPlayer player) {
* @param track The track to play or add to queue.
*/
public void queue(AudioTrack track) {
if (player.startTrack(track, true)) {
if (this.queue.isEmpty() && player.startTrack(track, true)) {
// トラックが開始された場合
reactionSpeaking(track);
} else {
Expand Down

0 comments on commit 4c39ef6

Please sign in to comment.