Delete unused stuff in the pulseaudio player

This commit is contained in:
Thomas Goyne 2014-05-23 13:45:15 -07:00
parent 55865d131a
commit 9ca61a2fb5

View file

@ -58,9 +58,6 @@ class PulseAudioPlayer final : public AudioPlayer {
unsigned long bpf = 0; // bytes per frame unsigned long bpf = 0; // bytes per frame
wxSemaphore context_notify{0, 1}; wxSemaphore context_notify{0, 1};
wxSemaphore context_success{0, 1};
volatile int context_success_val;
wxSemaphore stream_notify{0, 1}; wxSemaphore stream_notify{0, 1};
wxSemaphore stream_success{0, 1}; wxSemaphore stream_success{0, 1};
volatile int stream_success_val; volatile int stream_success_val;
@ -76,8 +73,6 @@ class PulseAudioPlayer final : public AudioPlayer {
int paerror = 0; int paerror = 0;
/// Called by PA to notify about contetxt operation completion
static void pa_context_success(pa_context *c, int success, PulseAudioPlayer *thread);
/// Called by PA to notify about other context-related stuff /// Called by PA to notify about other context-related stuff
static void pa_context_notify(pa_context *c, PulseAudioPlayer *thread); static void pa_context_notify(pa_context *c, PulseAudioPlayer *thread);
/// Called by PA when a stream operation completes /// Called by PA when a stream operation completes
@ -274,13 +269,6 @@ int64_t PulseAudioPlayer::GetCurrentPosition()
return start_frame + playtime * provider->GetSampleRate() / (1000*1000); return start_frame + playtime * provider->GetSampleRate() / (1000*1000);
} }
/// @brief Called by PA to notify about contetxt operation completion
void PulseAudioPlayer::pa_context_success(pa_context *c, int success, PulseAudioPlayer *thread)
{
thread->context_success_val = success;
thread->context_success.Post();
}
/// @brief Called by PA to notify about other context-related stuff /// @brief Called by PA to notify about other context-related stuff
void PulseAudioPlayer::pa_context_notify(pa_context *c, PulseAudioPlayer *thread) void PulseAudioPlayer::pa_context_notify(pa_context *c, PulseAudioPlayer *thread)
{ {