diff options
Diffstat (limited to 'audio_read.c')
-rw-r--r-- | audio_read.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/audio_read.c b/audio_read.c index 0556f13..ca1e603 100644 --- a/audio_read.c +++ b/audio_read.c @@ -237,6 +237,7 @@ unsigned long read_samples (music_in_t* musicin, short sample_buffer[2304], fprintf (stderr, "Hit end of WAV audio data\n"); } else if (glopts.input_select == INPUT_SELECT_VLC) { +#if defined(VLC_INPUT) ssize_t bytes_read = vlc_in_read(sample_buffer, sizeof(short) * (int)samples_read); if (bytes_read == -1) { fprintf (stderr, "VLC input error\n"); @@ -245,6 +246,9 @@ unsigned long read_samples (music_in_t* musicin, short sample_buffer[2304], else { samples_read = bytes_read / sizeof(short); } +#else + samples_read = 0; +#endif } /* |