1 Aug 2010 16:27
Input buffer does not work properly for 8-bit samples
Tatu Portin <portin1986 <at> gmail.com>
2010-08-01 14:27:36 GMT
2010-08-01 14:27:36 GMT
Note: I am using pa_snapshot.tgz, created on 2010-07-19, 10:59:15 I am testing patest_record.c that comes with portaudio library. * $Id: patest_record.c 1368 2008-03-01 00:38:27Z rossb $ Well, when using PA_SAMPLE_TYPE as paFloat32 or paInt16, sound input works as expected. Thou, calculating differences between samples, I noticed that there is only 255 different values, that means my sound card input is only 8-bit. Well, but when I enable PA_SAMPLE_TYPE paInt8 instead, I get no input at all.. it doesn't write anything to the buffer but zeros. Compiler is mingw32-gcc version 4.4.0. Soundcard is SoundMAX Digital Audio (integrated), and I'm using WaveOut Mix as capture device. That means input is anything that gets played on the computer. This works ok, but using 8-bit samples, I get no input but zeros. Tatu Portin.
RSS Feed