Changeset 3869:c63e1367041c in roaraudio for roard/include/driver_portaudio.h
- Timestamp:
- 05/19/10 22:14:22 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/include/driver_portaudio.h
r3751 r3869 27 27 #define _DRIVER_PORTAUDIO_H_ 28 28 29 //#undef ROAR_HAVE_LIBPABLIO 30 //#define ROAR_HAVE_LIBPORTAUDIO_V0_19 31 29 32 #ifdef ROAR_HAVE_LIBPORTAUDIO 30 #if defined(ROAR_HAVE_LIBPABLIO) 33 #if defined(ROAR_HAVE_LIBPABLIO) || defined(ROAR_HAVE_LIBPORTAUDIO_V0_19) 31 34 #define _DRIVER_PORTAUDIO_CAN_OPERATE 32 35 #endif … … 38 41 #ifdef ROAR_HAVE_LIBPABLIO 39 42 PABLIO_Stream * ostream; 43 #elif defined(ROAR_HAVE_LIBPORTAUDIO_V0_19) 44 PaStream *stream; 45 int framesize; 40 46 #endif 41 47 }; 48 49 typedef 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 66 void * Pa_GetDefaultOutputDevice(void); 67 // Pa_WriteStream(device->stream, buf, write_frames); 68 PaError Pa_WriteStream(PaStream * stream, void *, size_t); 69 PaError Pa_StartStream(PaStream * stream); 70 PaError Pa_StopStream(PaStream * stream); 71 PaError Pa_CloseStream(PaStream * stream); 42 72 43 73 int 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.