mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: client: rewrite VOX subsystem, fix spaces being taken into sentences, add tests for parser, remove dead code
This commit is contained in:
parent
18933e7981
commit
3f7773f83b
File diff suppressed because it is too large
Load Diff
@ -16,9 +16,9 @@ GNU General Public License for more details.
|
|||||||
#ifndef VOX_H
|
#ifndef VOX_H
|
||||||
#define VOX_H
|
#define VOX_H
|
||||||
|
|
||||||
#define CVOXWORDMAX 64
|
#define CVOXWORDMAX 64
|
||||||
#define CVOXZEROSCANMAX 255 // scan up to this many samples for next zero crossing
|
#define CVOXFILESENTENCEMAX 4096
|
||||||
#define MAX_SENTENCES 4096
|
|
||||||
#define SENTENCE_INDEX -99999 // unique sentence index
|
#define SENTENCE_INDEX -99999 // unique sentence index
|
||||||
|
|
||||||
typedef struct voxword_s
|
typedef struct voxword_s
|
||||||
@ -34,13 +34,6 @@ typedef struct voxword_s
|
|||||||
sfx_t *sfx; // name and cache pointer
|
sfx_t *sfx; // name and cache pointer
|
||||||
} voxword_t;
|
} voxword_t;
|
||||||
|
|
||||||
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
char *pName;
|
|
||||||
float length;
|
|
||||||
} sentence_t;
|
|
||||||
|
|
||||||
struct channel_s;
|
struct channel_s;
|
||||||
void VOX_LoadWord( struct channel_s *pchan );
|
void VOX_LoadWord( struct channel_s *pchan );
|
||||||
void VOX_FreeWord( struct channel_s *pchan );
|
void VOX_FreeWord( struct channel_s *pchan );
|
||||||
|
@ -826,6 +826,9 @@ static void Host_RunTests( int stage )
|
|||||||
break;
|
break;
|
||||||
case 1: // after FS load
|
case 1: // after FS load
|
||||||
Test_RunImagelib();
|
Test_RunImagelib();
|
||||||
|
#if !XASH_DEDICATED
|
||||||
|
Test_RunVOX();
|
||||||
|
#endif
|
||||||
Msg( "Done! %d passed, %d failed\n", tests_stats.passed, tests_stats.failed );
|
Msg( "Done! %d passed, %d failed\n", tests_stats.passed, tests_stats.failed );
|
||||||
Sys_Quit();
|
Sys_Quit();
|
||||||
}
|
}
|
||||||
|
@ -36,6 +36,7 @@ void Test_RunCommon( void );
|
|||||||
void Test_RunCmd( void );
|
void Test_RunCmd( void );
|
||||||
void Test_RunCvar( void );
|
void Test_RunCvar( void );
|
||||||
void Test_RunCon( void );
|
void Test_RunCon( void );
|
||||||
|
void Test_RunVOX( void );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user