finishPlayback method

void finishPlayback()

Implementation

void finishPlayback() {
  alsa.snd_pcm_drain(pcmHandlePtr.value);
  alsa.snd_pcm_close(pcmHandlePtr.value);

  calloc.free(audioFramesBuffer);
  calloc.free(pcmHandlePtr);
  calloc.free(framesPtr);
}