| Summary: | Support an environment variable for specifying preferred mixer chunk size | ||
|---|---|---|---|
| Product: | SDL_mixer | Reporter: | Bill Kendrick <bill> |
| Component: | misc | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | enhancement | ||
| Priority: | P2 | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Bill Kendrick
2006-02-06 14:32:19 UTC
In the SDL subversion code today:
If SDL_OpenAudio() is passed zero for the desired format
fields, the following environment variables will be used
to fill them in:
SDL_AUDIO_FREQUENCY
SDL_AUDIO_FORMAT
SDL_AUDIO_CHANNELS
SDL_AUDIO_SAMPLES
If an environment variable is not specified, it will be set
to a reasonable default value.
Since SDL_mixer passes it's parameters straight through to SDL, all you have to do is specify zero for the appropriate parameter. You should probably make sure you're linking with a new enough version of SDL at runtime though. :) See SDL/test/testver.c for an example of how to check the runtime version of SDL.
|