Changed: #825 Remove all warnings when compiling Ryzom

This commit is contained in:
kervala 2010-08-30 17:42:17 +02:00
parent bd9c9c7836
commit 752af53f15

View file

@ -62,7 +62,7 @@ void Init()
AudioMixer->setSamplePath("data/samplebank"); AudioMixer->setSamplePath("data/samplebank");
// Packed sheet option, this mean we want packed sheet generated in 'data' folder // Packed sheet option, this mean we want packed sheet generated in 'data' folder
AudioMixer->setPackedSheetOption("data", true); AudioMixer->setPackedSheetOption("data", true);
printf("Select NLSOUND Driver:\n"); printf("Select NLSOUND Driver:\n");
printf(" [1] FMod\n"); printf(" [1] FMod\n");
printf(" [2] OpenAl\n"); printf(" [2] OpenAl\n");
@ -71,7 +71,7 @@ void Init()
printf("> "); printf("> ");
int selection = getchar(); int selection = getchar();
printf("\n"); printf("\n");
// init with 32 tracks, EAX enabled, no ADPCM, and activate automatic sample bank loading // init with 32 tracks, EAX enabled, no ADPCM, and activate automatic sample bank loading
AudioMixer->init(32, true, false, NULL, true, (UAudioMixer::TDriver)(selection - '0')/*UAudioMixer::DriverFMod*/); AudioMixer->init(32, true, false, NULL, true, (UAudioMixer::TDriver)(selection - '0')/*UAudioMixer::DriverFMod*/);
@ -143,7 +143,7 @@ void OnMove( const CVector& listenerpos )
* Note: The NeL vector coordinate system is described as follows: * Note: The NeL vector coordinate system is described as follows:
* \verbatim * \verbatim
* (top) * (top)
* z * z
* | y (front) * | y (front)
* | / * | /
* -----x (right) * -----x (right)
@ -151,7 +151,7 @@ void OnMove( const CVector& listenerpos )
*/ */
int main() int main()
{ {
new CApplicationContext(); // crash at end if on stack ... CApplicationContext *appContext = new CApplicationContext(); // crash at end if on stack ...
// Initialization // Initialization
Init(); Init();
@ -208,4 +208,8 @@ int main()
delete src1; delete src2; delete src1; delete src2;
delete AudioMixer; delete AudioMixer;
delete appContext;
return 0;
} }