Subversion Repositories Games.Carmageddon

Rev

Rev 1 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 18
Line 22... Line 22...
22
 
22
 
23
float dword_531D9C;
23
float dword_531D9C;
24
float flt_531D7C;
24
float flt_531D7C;
25
float flt_531D98;
25
float flt_531D98;
26
 
26
 
27
void S3Set3DSoundEnvironment(float a1, float a2, float a3) {
27
void S3Set3DSoundEnvironment(float pInverse_world_scale, float a2, float a3) {
28
    float tmp;
28
    float tmp;
29
 
29
 
30
    if (a1 == -1.0f) {
30
    if (pInverse_world_scale == -1.0f) {
31
        a1 = 0.25f;
31
        pInverse_world_scale = 0.25f;
32
    }
32
    }
33
    if (a2 == -1.0f) {
33
    if (a2 == -1.0f) {
34
        a2 = 1.2f;
34
        a2 = 1.2f;
35
    }
35
    }
36
    if (a3 == -1.0f) {
36
    if (a3 == -1.0f) {
37
        a3 = 130000.0f;
37
        a3 = 130000.0f;
38
    }
38
    }
39
    dword_531D9C = a1;
39
    dword_531D9C = pInverse_world_scale;
40
    tmp = sqrtf(a3 / a2);
40
    tmp = sqrtf(a3 / a2);
41
    flt_531D7C = tmp;
41
    flt_531D7C = tmp;
42
    flt_531D98 = tmp * dword_531D9C;
42
    flt_531D98 = tmp * dword_531D9C;
43
    gS3_listener_position_now.x = 0.0;
43
    gS3_listener_position_now.x = 0.0;
44
    gS3_listener_position_now.y = 0.0;
44
    gS3_listener_position_now.y = 0.0;