diff -wruN orig/audacity/lib-src/portaudio-v19/include/pa_linux_alsa.h audacity/lib-src/portaudio-v19/include/pa_linux_alsa.h
|
old
|
new
|
|
| 63 | 63 | |
| 64 | 64 | void PaAlsa_EnableWatchdog( PaStream *s, int enable ); |
| 65 | 65 | |
| | 66 | int PaAlsa_GetStreamInputCard( PaStream *s ); |
| | 67 | |
| | 68 | int PaAlsa_GetStreamOutputCard( PaStream *s ); |
| | 69 | |
| 66 | 70 | #ifdef __cplusplus |
| 67 | 71 | } |
| 68 | 72 | #endif |
diff -wruN orig/audacity/lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c audacity/lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c
|
old
|
new
|
|
| 3321 | 3321 | stream->threading.useWatchdog = enable; |
| 3322 | 3322 | #endif |
| 3323 | 3323 | } |
| | 3324 | |
| | 3325 | int PaAlsa_GetStreamInputCard( PaStream *s ) |
| | 3326 | { |
| | 3327 | PaAlsaStream *stream = (PaAlsaStream *) s; |
| | 3328 | snd_pcm_info_t *pcmInfo; |
| | 3329 | int card = -1; |
| | 3330 | |
| | 3331 | if( stream->capture.pcm ) |
| | 3332 | { |
| | 3333 | snd_pcm_info_alloca( &pcmInfo ); |
| | 3334 | if( snd_pcm_info( stream->capture.pcm, pcmInfo ) >= 0 ) |
| | 3335 | { |
| | 3336 | card = snd_pcm_info_get_card( pcmInfo ); |
| | 3337 | } |
| | 3338 | } |
| | 3339 | |
| | 3340 | return card; |
| | 3341 | } |
| | 3342 | |
| | 3343 | int PaAlsa_GetStreamOutputCard( PaStream *s ) |
| | 3344 | { |
| | 3345 | PaAlsaStream *stream = (PaAlsaStream *) s; |
| | 3346 | snd_pcm_info_t *pcmInfo; |
| | 3347 | int card = -1; |
| | 3348 | |
| | 3349 | if( stream->playback.pcm ) |
| | 3350 | { |
| | 3351 | snd_pcm_info_alloca( &pcmInfo ); |
| | 3352 | if( snd_pcm_info( stream->playback.pcm, pcmInfo ) >= 0 ) |
| | 3353 | { |
| | 3354 | card = snd_pcm_info_get_card( pcmInfo ); |
| | 3355 | } |
| | 3356 | } |
| | 3357 | |
| | 3358 | return card; |
| | 3359 | } |
| | 3360 | |