Newsgroups: comp.sys.acorn.programmer
From: Jonathan Duddingon <nos...@jsd.clara.co.uk>
Date: Sat, 01 Apr 2006 00:27:46 +0100
Local: Sat 1 Apr 2006 00:27
Subject: Calling C from sound handler crashes system
The Speak text-to-speech module processes text into phonemes and then
into a lower level form of formants (peaks in the frequency spectrum) which are then queued for output (the "wcmdq") Speak registers a RISC_OS "Linear Sound Handler" (SWI &40145) which When the wcmdq gets low, the sound handler sets a transient callback This all works properly in the currently available Speak version 2, I'm now trying to port a re-write which I did on Linux But calling the C function from the sound handler gives: The callback-setting is commented out, so that's not the problem. Calling a dummy C function (one which just assigns a couple of Calling a dummy C function which then calls another dummy C function I've checked the ARM procedure calling protocols and I think that's OK. IMPORT DummyProc1 DMA_Handler MOV r5,ip ; need to save ip MOV r6,r1 ;DMA start 16 bit sound SUB r0,r7,r6 ;r0 = size of DMA buffer NOP When the error occurs, the NOP isn't reached (i.e. DummyProc1 doesn't Am I doing something wrong, or is it just not possible to call a chain -- You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||