Skip to content

Commit

Permalink
Added function for discarding a sample from the buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
pichenettes committed Apr 26, 2011
1 parent 094c173 commit 46b97a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions audio_output.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ class AudioOutput {
Overwrite(v);
return 1;
}

static inline void DiscardSample() {
OutputBuffer::ImmediateRead();
}

// Called from data emission interrupt.
static inline void EmitSample() {
Expand Down

0 comments on commit 46b97a6

Please sign in to comment.