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