/* Pauses or Resumes the audio stream playing from the Media.  */
static void Audio_MAL_PauseResume(uint32_t Cmd, uint32_t Addr)
/* Pauses or Resumes the audio stream playing from the Media.  */
static void Audio_MAL_PauseResume(uint32_t Cmd, uint32_t Addr)
{
  if (Cmd == AUDIO_PAUSE)
  {
    SPI_I2S_DMACmd(CODEC_I2S, SPI_I2S_DMAReq_Tx, DISABLE);
    DMA_Cmd(AUDIO_MAL_DMA_STREAM, DISABLE);
  }
  else
  {
    SPI_I2S_DMACmd(CODEC_I2S, SPI_I2S_DMAReq_Tx, ENABLE);
    DMA_Cmd(AUDIO_MAL_DMA_STREAM, ENABLE);
    if ((CODEC_I2S->I2SCFGR & I2S_ENABLE_MASK) == 0)
    {
      I2S_Cmd(CODEC_I2S, ENABLE);
    }    
  } 
}