Changeset 176

Show
Ignore:
Timestamp:
03/11/05 08:43:09 (3 years ago)
Author:
conrad
Message:

update ALSA compatability, declare ALSA_PCM_OLD_HW_PARAMS_API

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libremix/libremix/src/libremix/remix_monitor.c

    r161 r176  
    4242 
    4343#if (HAVE_ALSA == 1) 
     44#define ALSA_PCM_OLD_HW_PARAMS_API 
    4445#include <alsa/asoundlib.h> 
    4546#else 
  • libremix/libremix/src/libremix/remix_private.h

    r168 r176  
    3636#include <stdlib.h> 
    3737#include <stdio.h> 
    38  
    39 #if (HAVE_ALSA == 1) 
    40 #include <alsa/asoundlib.h> 
    41 #endif 
    4238 
    4339#include "ctxdata.h" 
     
    174170#define REMIX_MONITOR_BUFFERLEN 2048 
    175171 
     172/* Opaque type from <alsa/pcm.h> */ 
     173#ifndef __ALSA_PCM_H 
     174typedef struct _snd_pcm snd_pcm_t; 
     175#endif 
     176 
    176177struct _RemixMonitor { 
    177178  RemixBase base; 
     
    186187  int numfrags; 
    187188  int fragsize; 
    188 #if (HAVE_ALSA == 1) 
    189189  snd_pcm_t *alsa_dev; 
    190 #else 
    191   void *alsa_dev; 
    192 #endif 
    193190}; 
    194191