mirror of
https://github.com/halleysfifthinc/AVCLAN-Mockingboard.git
synced 2026-08-06 17:03:17 +00:00
Only play (headset) on after first pause
This commit is contained in:
+4
-1
@@ -260,7 +260,10 @@ static inline void resetStatusTimer() {
|
||||
// Sets CD_mode to play and resets timer count (so that the next interrupt is in
|
||||
// 1 sec)
|
||||
static void AVCLAN_startPlaying() {
|
||||
AVCLAN_micPlayPause();
|
||||
static bool havePlayed = false;
|
||||
if (havePlayed)
|
||||
AVCLAN_micPlayPause();
|
||||
havePlayed |= true;
|
||||
CD_Mode = stPlay;
|
||||
resetStatusTimer();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user