Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 156725 Details for
Bug 222841
Tracker for unmasking =media-libs/portaudio-19_pre20071207 (due 01 Jun 2008)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Patch to convert LIRC portaudio to use v19
lirc-0.8.3_pre1-pa19.patch (text/plain), 1.91 KB, created by
Thomas Beierlein
on 2008-06-14 10:15:56 UTC
(
hide
)
Description:
Patch to convert LIRC portaudio to use v19
Filename:
MIME Type:
Creator:
Thomas Beierlein
Created:
2008-06-14 10:15:56 UTC
Size:
1.91 KB
patch
obsolete
>--- daemons/hw_audio.c.orig 2008-06-13 22:24:40.000000000 +0200 >+++ daemons/hw_audio.c 2008-06-13 22:17:31.000000000 +0200 >@@ -66,7 +66,7 @@ > } > paTestData; > >-PortAudioStream *stream; >+PaStream *stream; > > > extern struct ir_remote *repeat_remote; >@@ -90,7 +90,9 @@ > > static int recordCallback( void *inputBuffer, void *outputBuffer, > unsigned long framesPerBuffer, >- PaTimestamp outTime, void *userData ) >+ PaStreamCallbackTimeInfo outTime, >+ PaStreamCallbackFlags status, >+ void *userData ) > { > paTestData *data = (paTestData*)userData; > SAMPLE *rptr = (SAMPLE*)inputBuffer; >@@ -215,6 +217,7 @@ > int audio_init() > { > >+ PaStreamParameters inputParameters; > PaError err; > int flags; > struct termios t; >@@ -237,22 +240,27 @@ > err = Pa_Initialize(); > if( err != paNoError ) goto error; > >+ inputParameters.device = Pa_GetDefaultInputDevice(); /* default input device */ >+ if (inputParameters.device == paNoDevice) { >+ logprintf(LOG_ERR, "No default input device"); >+ goto error; >+ } >+ inputParameters.channelCount = NUM_CHANNELS; /* stereo input */ >+ inputParameters.sampleFormat = PA_SAMPLE_TYPE; >+ inputParameters.suggestedLatency = >+ Pa_GetDeviceInfo( inputParameters.device )->defaultLowInputLatency; >+ inputParameters.hostApiSpecificStreamInfo = NULL; >+ >+ > // Record some audio. -------------------------------------------- > err = Pa_OpenStream > ( > &stream, >- Pa_GetDefaultInputDeviceID(), >- NUM_CHANNELS, // stereo input >- PA_SAMPLE_TYPE, >- NULL, >- paNoDevice, >- 0, >- PA_SAMPLE_TYPE, >- NULL, >+ &inputParameters, >+ NULL, // output parameters > SAMPLE_RATE, > 512, // frames per buffer >- 0, // number of buffers, if zero then use default minimum >- 0, // flags >+ 0, // flags > recordCallback, > &data ); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 222841
: 156725