Browse Source

Add AudioStream update_stop

teensy4-core
PaulStoffregen 11 years ago
parent
commit
3e9587f682
2 changed files with 7 additions and 0 deletions
  1. +6
    -0
      teensy3/AudioStream.cpp
  2. +1
    -0
      teensy3/AudioStream.h

+ 6
- 0
teensy3/AudioStream.cpp View File

return true; return true;
} }


void AudioStream::update_stop(void)
{
NVIC_DISABLE_IRQ(IRQ_SOFTWARE);
update_scheduled = false;
}

AudioStream * AudioStream::first_update = NULL; AudioStream * AudioStream::first_update = NULL;


void software_isr(void) // AudioStream::update_all() void software_isr(void) // AudioStream::update_all()

+ 1
- 0
teensy3/AudioStream.h View File

audio_block_t * receiveReadOnly(unsigned int index = 0); audio_block_t * receiveReadOnly(unsigned int index = 0);
audio_block_t * receiveWritable(unsigned int index = 0); audio_block_t * receiveWritable(unsigned int index = 0);
static bool update_setup(void); static bool update_setup(void);
static void update_stop(void);
static void update_all(void) { NVIC_SET_PENDING(IRQ_SOFTWARE); } static void update_all(void) { NVIC_SET_PENDING(IRQ_SOFTWARE); }
friend void software_isr(void); friend void software_isr(void);
friend class AudioConnection; friend class AudioConnection;

Loading…
Cancel
Save