// Close an opened audio device, free any allocated buffers and // reset any variables that reflect the current state. void Audio_ALSA::close () { if (_audioHandle != NULL ) { snd_pcm_close(_audioHandle); delete[] _sampleBuffer; outOfOrder (); } }
// Close an opened audio device, free any allocated buffers and // reset any variables that reflect the current state. void Audio_OSS::close () { if (_audiofd != (-1)) { ::close (_audiofd); delete [] (int_least32_t *) _sampleBuffer; outOfOrder (); } }
// Close an opened audio device, free any allocated buffers and // reset any variables that reflect the current state. void Audio_ALSA::close () { if (_audioHandle != NULL ) { snd_pcm_close(_audioHandle); delete [] ((int_least8_t *) _sampleBuffer); outOfOrder (); } }
void Audio_Irix::close () { if (_audio != NULL) { ALcloseport(_audio); ALfreeconfig(_config); _audio = NULL; _config = NULL; outOfOrder (); } }
// Close an opened audio device, free any allocated buffers and // reset any variables that reflect the current state. void Audio_Pulse::close () { if (_audioHandle != NULL) { pa_simple_free(_audioHandle); _audioHandle = NULL; } if (_sampleBuffer != NULL) { delete [] _sampleBuffer; outOfOrder (); } }
Audio_ALSA::Audio_ALSA() { // Reset everything. outOfOrder(); }
Audio_OSS::Audio_OSS() { // Reset everything. outOfOrder(); _swapEndian = false; }
Audio_Pulse::Audio_Pulse() { outOfOrder(); }
Audio_Irix::Audio_Irix() { outOfOrder(); }