Skip to content

Commit

Permalink
Added a get/set volume call for audio channels in the mixer
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnVidler committed Mar 21, 2022
1 parent 4d54997 commit 1c4f5cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions inc/MicroBitAudio.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ namespace codal
NRF52Pin &microphone; // Microphone pin passed from MicroBit constructor
NRF52Pin &runmic; // Runmic pin passed from MicroBit constructor

int micDriverTimeout;

public:
SoundExpressions soundExpressions; // SoundExpression intepreter
SoundOutputPin virtualOutputPin; // Virtual PWM channel (backward compatibility).
Expand All @@ -86,6 +88,11 @@ namespace codal
*/
static void requestActivation();

/**
* Called periodically to maintain the periperhal timout timers
*/
void periodicCallback();

/**
* Catch events from the splitter
* @param MicroBitEvent
Expand Down

0 comments on commit 1c4f5cf

Please sign in to comment.