| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) | 
Attach a function to the mixer to be called when the mixer is destroyed
#include <audio_driver.h>
void ado_mixer_set_destroy_func
  ( ado_mixer_t *mixer,
    ado_mixer_destroy_t *destroy );
int32_t destroy( MIXER_CONTEXT_T *context );
The io-audio manager ignores the value that the cleanup function returns.
The ado_mixer_set_destroy_func() attaches a function to the mixer that io-audio will call when the mixer is destroyed. You can use this function to do any required cleanup.
QNX Neutrino
| Safety: | |
|---|---|
| Cancellation point | No | 
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | No | 
| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) |