Ignore:
Timestamp:
05/19/10 22:14:22 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed long outstanding Con vs. VIO bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/include/driver_portaudio.h

    r3751 r3869  
    2727#define _DRIVER_PORTAUDIO_H_ 
    2828 
     29//#undef ROAR_HAVE_LIBPABLIO 
     30//#define ROAR_HAVE_LIBPORTAUDIO_V0_19 
     31 
    2932#ifdef ROAR_HAVE_LIBPORTAUDIO 
    30 #if defined(ROAR_HAVE_LIBPABLIO) 
     33#if defined(ROAR_HAVE_LIBPABLIO) || defined(ROAR_HAVE_LIBPORTAUDIO_V0_19) 
    3134#define _DRIVER_PORTAUDIO_CAN_OPERATE 
    3235#endif 
     
    3841#ifdef ROAR_HAVE_LIBPABLIO 
    3942 PABLIO_Stream * ostream; 
     43#elif defined(ROAR_HAVE_LIBPORTAUDIO_V0_19) 
     44 PaStream *stream; 
     45 int framesize; 
    4046#endif 
    4147}; 
     48 
     49typedef struct { 
     50/* 
     51 params.device                    = Pa_GetDefaultOutputDevice(); 
     52 params.channelCount              = info->channels; 
     53 params.sampleFormat              = fmt; 
     54 params.suggestedLatency          = Pa_GetDeviceInfo(params.device)->defaultLowOutputLatency; 
     55 params.hostApiSpecificStreamInfo = NULL; 
     56*/ 
     57 void * device; 
     58 int channelCount; 
     59 PaSampleFormat sampleFormat; 
     60 int suggestedLatency; 
     61 void * hostApiSpecificStreamInfo; 
     62} PaStreamParameters; 
     63 
     64#define paOutputUnderflowed -1 
     65 
     66void *  Pa_GetDefaultOutputDevice(void); 
     67// Pa_WriteStream(device->stream, buf, write_frames); 
     68PaError  Pa_WriteStream(PaStream * stream, void *, size_t); 
     69PaError Pa_StartStream(PaStream * stream); 
     70PaError Pa_StopStream(PaStream * stream); 
     71PaError Pa_CloseStream(PaStream * stream); 
    4272 
    4373int driver_portaudio_open(struct roar_vio_calls * inst, char * device, struct roar_audio_info * info, int fh, struct roar_stream_server * sstream); 
Note: See TracChangeset for help on using the changeset viewer.