Re: [Alsa-devel] forking in user-space; mmap refcounting bug inalsa-kernel

2002-06-18 Thread Kai Vehmanen
On Mon, 17 Jun 2002, Jaroslav Kysela wrote: > Bellow patch should fix this problem, but I need to do more tests with > latest 2.5 and older 2.2 kernels, if it's a correct fix. Hmm, this doesn't solve the problem at least when using the 2.4.17 kernel. With the test program I still get the asser

Re: [Alsa-devel] seg fault

2002-06-18 Thread Andy Lo-A-Foe
On Tue, Jun 18, 2002 at 07:47:59PM +0200, dunk fordyce wrote: > now im wondering whats the best way to play multiple samples at once? That would require mixing the different samples (i.e. adding the pcm values and doing clipping). // 16-bit samples, int16_t buf1[1024], buf2[1024], out[1024]; in

Re: [Alsa-devel] seg fault

2002-06-18 Thread Andy Lo-A-Foe
On Tue, Jun 18, 2002 at 05:59:32PM +0200, dunk fordyce wrote: > anyone tell me why i get a seg fault? > ( excuse the c++ but im learning :) gdb is your friend! segfault usually means some pointer/memory problem. gdb will tell you at what line number your program crashes... Looks like you are fr

[Alsa-devel] seg fault

2002-06-18 Thread dunk fordyce
anyone tell me why i get a seg fault? ( excuse the c++ but im learning :) #include #include #include using namespace std; #define CLI_MSG_ERR "Error: " #define CLI_MSG_INFO "*** " #define CLI_MSG_CONT " [ cont... ] " #define CLI_MSG_VAR "---> " #define CLI_MSG_SEP "--