[AD] [ alleg-Bugs-1978454 ] read_sound_input returns incorrect data

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Bugs item #1978454, was opened at 2008-05-30 00:29
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=1978454&group_id=5665

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Windows
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: C4z - (c4z)
Assigned to: Nobody/Anonymous (nobody)
Summary: read_sound_input returns incorrect data

Initial Comment:
Hi,

With version 4.2.2, the read_sound_input function does not fill the buffer given as a parameter correctly on Windows when using DirectSound.

I think the problem comes from the call to IDirectSoundCaptureBuffer_GetCurrentPosition() used in the digi_directsound_rec_read() function of the wsdinput.c source file. The position to retrieve should be the position of the read cursor, not the capture cursor.

Hope it will help this great project !

email : caz666 [at] free [dot] fr

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=1978454&group_id=5665




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/