Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Apr 18, 2011
1 parent 1f6a2f2 commit 71fe0ac
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions hairtunes.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,10 +654,8 @@ int stuff_buffer(double playback_rate, short *inptr, short *outptr) {

void *audio_thread_func(void *arg) {
ao_device* dev = arg;
// file handle for named pipe
int fd = -1;

int i __attribute__((unused)), play_samples;
int fd = -1; // file handle for named pipe
int play_samples;

signed short buf_fill __attribute__((unused));
signed short *inbuf, *outbuf;
Expand Down Expand Up @@ -694,6 +692,7 @@ void *audio_thread_func(void *arg) {

#ifdef FANCY_RESAMPLING
if (fancy_resampling) {
int i;
for (i=0; i<2*FRAME_BYTES; i++) {
frame[i] = (float)inbuf[i] / 32768.0;
frame[i] *= volume;
Expand Down

0 comments on commit 71fe0ac

Please sign in to comment.