| View previous topic :: View next topic |
| Author |
Message |
ktaa
Joined: 30 Oct 2007 Posts: 2
|
Posted: Tue Oct 30, 2007 7:42 pm Post subject: Programing/changing standard entry from the audio table |
|
|
Hi,
I am working with sensory VR DEMO example called svsleep. But in order to customize this for our project, I need to change some standard audio annoucements that is programmed into the system.
For example when I look into the file svsleep\speech\sv_patgen.h file, I see a sound table is being defined SNDTBL_SV_PATGEN. For example, I want to change (extern far cdata SX_level5) to a different speech ( lets say "max level"). How do I program this new sound or how can I link a new audio to any project?
Thanks for your help.
AA |
|
| Back to top |
|
BrunoG Site Admin
Joined: 22 Nov 2005 Posts: 636
|
|
| Back to top |
|
ktaa
Joined: 30 Oct 2007 Posts: 2
|
Posted: Sat Nov 03, 2007 4:37 am Post subject: |
|
|
Hi BrounoG,
Thanks. I have tried to include a test1.h which includes all the wavefile of your lightshow example. Then I tried to use the SNDTBL_TEST1 in teh svsleep example in sensory\FC3_0_7\csamples\svsleep\svsleep.c. I keep getting the following error.
Undefined extern name 'SNDTBL_TEST1' in module "SVSLEEP'
the test1.h is same as your led_lightshow example. I am pasting some sample lines from svsleep.c, teh way I changed it.
Appreciate your help.
Thanks
AA
#include "speech\test1.h"
....
...
{
_PlaySnd(SND_repeat, (long)&SNDTBL_TEST1, SX_FULL_VOL);
_PlaySnd(SND_repeat, (long)&SNDTBL_TEST1, SX_FULL_VOL);
}
else if (error)
_PlaySnd(SND_try_again, (long)&SNDTBL_TEST1, SX_FULL_VOL);
else
_PlaySnd(SND_ok, (long)&SNDTBL_TEST1, SX_FULL_VOL);
}
...
... |
|
| Back to top |
|
BrunoG Site Admin
Joined: 22 Nov 2005 Posts: 636
|
Posted: Sun Nov 04, 2007 10:52 pm Post subject: |
|
|
as you can see in the project, there is an object file called LEDLIGHTSHOW.MCO in the QS4 directory : this file is produced by QS4,
it contains the compressed sounds.
the definitions in the .H file only point to the sound segments of this object file. _________________ BrunoG, Administrator |
|
| Back to top |
|
|