Hello the savonet team & users, I'm working on a modified simple_client.ml, in which I would like to test filtering and various dsp processing, later.
For now, the thing is working well: only 2 underrun in several hours of listening. But I would like to improve it: - add a way to monitor the activity of the GC while it's running - add simple log message in case mlock fails You can find the source here: http://philou.ch/caml it's "blackjack.ml" You'll see both aforementioned attempts commented out. The try ... with make the program exit, without any failure, before entering the infinite loop. The attempt at launching a really basic thread for printing GC stats gives a bus error (I'm on OSX 10.5.4): (gdb) run Starting program: /Users/philou/mysrc/blackjack Reading symbols for shared libraries +++.............................................................................. done (EE) jack_client_new: deprecated (II) Sample rate: 44100 Hz (II) Sample size: 32 bits (II) Frame size: 1024 samples (II) Jack server is running with realtime scheduling minor_words: 434 promoted_words: 0 major_words: 15 minor_collections: 0 major_collections: 0 heap_words: 61440 heap_chunks: 1 top_heap_words: 61440 live_words: 15 live_blocks: 5 free_words: 61425 free_blocks: 1 largest_free: 61425 fragments: 0 compactions: 0 Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000010 [Switching to process 9896 thread 0x2f07] 0x00018399 in caml_thread_leave_blocking_section () Most probably it interact in a way that I can't understand with the poller thread. I've looked at the jack_stub.c source, especially the poller thing, without understanding much of it if any at all. Thank to anyone looking at my source code :-) -- Philippe Strauss http://philou.ch ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
