src/sdl/audio_player.cc
/*
 * Initializes the audio system by allocating the buffer and preparing
 * the filters.
 */
Initializes the audio system by allocating the buffer and preparing
the filters.
Initializes the audio system by allocating the buffer and preparing the filters .
AudioPlayer::AudioPlayer(SDL_AudioDeviceID device) {
  audio_buffer_ = new float[BUFFER_SIZE]();
  audio_device_ = device;
  SDL_PauseAudioDevice(audio_device_, 0);
  return;
}
AudioPlayer :: AudioPlayer ( SDL_AudioDeviceID device ) { audio_buffer_ = new float [ BUFFER_SIZE ] ( ) ; audio_device_ = device ; SDL_PauseAudioDevice ( audio_device_ , 0 ) ; return ; }
Initializes the audio system by allocating the buffer and preparing
 the filters.
Initializes the audio system by allocating the buffer and preparing the filters .
// Prepare the audio buffer. // Store and unpause the device.