Subversion Repositories eduke32

Rev

Rev 8769 | Rev 8782 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8769 Rev 8771
Line 41... Line 41...
41
# include "driver_sdl.h"
41
# include "driver_sdl.h"
42
#endif
42
#endif
43
43
44
int FX_ErrorCode = FX_Ok;
44
int FX_ErrorCode = FX_Ok;
45
int FX_Installed;
45
int FX_Installed;
-
 
46
int FX_MixRate;
46
47
47
const char *FX_ErrorString(int const ErrorNumber)
48
const char *FX_ErrorString(int const ErrorNumber)
48
{
49
{
49
    const char *ErrorString;
50
    const char *ErrorString;
50
51
Line 164... Line 165...
164
        FX_SetErrorCode(FX_MultiVocError);
165
        FX_SetErrorCode(FX_MultiVocError);
165
        MV_Printf("failed! %s\n", MV_ErrorString(MV_DriverError));
166
        MV_Printf("failed! %s\n", MV_ErrorString(MV_DriverError));
166
        status = FX_Error;
167
        status = FX_Error;
167
    }
168
    }
168
169
-
 
170
    FX_MixRate = MV_MixRate;
-
 
171
169
    if (status == FX_Ok)
172
    if (status == FX_Ok)
170
    {
173
    {
171
        MV_Printf(": %.1f KHz %s with %d voices\n", mixrate/1000.f, numchannels == 1 ? "mono" : "stereo", numvoices);
174
        MV_Printf(": %.1f KHz %s with %d voices\n", MV_MixRate/1000.f, numchannels == 1 ? "mono" : "stereo", numvoices);
172
        FX_Installed = TRUE;
175
        FX_Installed = TRUE;
173
    }
176
    }
174
177
175
    return status;
178
    return status;
176
}
179
}