summaryrefslogtreecommitdiffstats
path: root/stream/stream_radio.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-08-05 16:32:47 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-08-05 16:32:47 +0000
commitf83e779ee4c356947770069f6ccc993d23e981e3 (patch)
tree067beff688854f664fd3cdfd1ead6eaf6a2d8eed /stream/stream_radio.c
parentf7faf638d49edf5c111ef4c1043e37a08afae682 (diff)
downloadmpv-f83e779ee4c356947770069f6ccc993d23e981e3.tar.bz2
mpv-f83e779ee4c356947770069f6ccc993d23e981e3.tar.xz
Rename some audio-output-related preprocessor directives.
Switch them from a HAVE_ prefix to a CONFIG_ prefix. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27419 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream_radio.c')
-rw-r--r--stream/stream_radio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stream/stream_radio.c b/stream/stream_radio.c
index 6714760e8d..3002ee38c7 100644
--- a/stream/stream_radio.c
+++ b/stream/stream_radio.c
@@ -715,7 +715,7 @@ static int read_chunk(audio_in_t *ai, unsigned char *buffer)
int ret;
switch (ai->type) {
-#if defined(HAVE_ALSA9) || defined(HAVE_ALSA1X)
+#if defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X)
case AUDIO_IN_ALSA:
//device opened in non-blocking mode
ret = snd_pcm_readi(ai->alsa.handle, buffer, ai->alsa.chunk_size);
@@ -836,7 +836,7 @@ static int init_audio(radio_priv_t *priv)
priv->do_capture=1;
mp_msg(MSGT_RADIO,MSGL_V,MSGTR_RADIO_CaptureStarting);
-#if defined(HAVE_ALSA9) || defined(HAVE_ALSA1X)
+#if defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X)
while ((tmp = strrchr(priv->radio_param->adevice, '='))){
tmp[0] = ':';
//adevice option looks like ALSA device name. Switching to ALSA
@@ -862,7 +862,7 @@ static int init_audio(radio_priv_t *priv)
if(is_oss)
ioctl(priv->audio_in.oss.audio_fd, SNDCTL_DSP_NONBLOCK, 0);
#endif
-#if defined(HAVE_ALSA9) || defined(HAVE_ALSA1X)
+#if defined(CONFIG_ALSA9) || defined(CONFIG_ALSA1X)
if(!is_oss)
snd_pcm_nonblock(priv->audio_in.alsa.handle,1);
#endif