Did a lot of research on pulseaudio but I'm still confused:
The Target
----------
I want to fetch multiple audiostreams from dedicated (HowTo?) sound line-in devices and "demodulate" them in my application.
Started with an audiofile to speaker application - OK - working properly.
Nailed the problem down to this...
pa_stream_write(clsPulseAudio->paStream,clsPulseAudio->DataPointer()+clsPulseAudio->playBackPtr,writeSize,NULL,0,PA_SEEK_RELATIVE);
Tests:
printf("DATA %d\n\n", clsPulseAudio->paStream);
Every call to the buffer returns 6366048
printf("DATA %d\n\n", clsPulseAudio->DataPointer()+clsPulseAudio->playBackPtr,writeSize);
seems to return random "doubles" around -134585944
--------------------------------------------------
In fact I think I should get an unsigned char of 512 bytes
which I should be able to pass to the modem...
--------------------------------------------------
References:
1 2 3 4 5 6 7 8
|
int pa_stream_write(
pa_stream * p,
const void * data,
size_t nbytes,
pa_free_cb_t free_cb,
int64_t offset,
pa_seek_mode_t seek
)
|
http://freedesktop.org/software/pulseaudio/doxygen/stream_8h.html#
------------------------------------------
Thank's in advance
willi