Differences between current version and revision by previous author of SDL_OpenAudio(3).
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 3 | Last edited on Tuesday, December 23, 2003 10:29:50 am | by OneTimeUser | |
Older page: | version 2 | Last edited on Monday, June 3, 2002 6:53:46 pm | by perry | Revert |
@@ -97,21 +97,21 @@
after you open the audio device.
!!EXAMPLES
-/* Prototype of our callback function */
-void my_audio_callback(void *userdata, Uint8 *stream, int len);
-/* Open the audio device */
-SDL_!AudioSpec *desired, *obtained;
-SDL_!AudioSpec *hardware_spec;
-/* Allocate a desired SDL_!AudioSpec */
-desired=(SDL_!AudioSpec *)malloc(sizeof(SDL_!AudioSpec));
-/* Allocate space for the obtained SDL_!AudioSpec */
-obtained=(SDL_!AudioSpec *)malloc(sizeof(SDL_!AudioSpec));
-/* 22050Hz - FM Radio quality */
-desired-
+
/* Prototype of our callback function */
+ void my_audio_callback(void *userdata, Uint8 *stream, int len);
+ /* Open the audio device */
+ SDL_!AudioSpec *desired, *obtained;
+ SDL_!AudioSpec *hardware_spec;
+ /* Allocate a desired SDL_!AudioSpec */
+ desired=(SDL_!AudioSpec *)malloc(sizeof(SDL_!AudioSpec));
+ /* Allocate space for the obtained SDL_!AudioSpec */
+ obtained=(SDL_!AudioSpec *)malloc(sizeof(SDL_!AudioSpec));
+ /* 22050Hz - FM Radio quality */
+ desired-
!!SEE ALSO
__SDL_!AudioSpec__, __SDL_!LockAudio__,
__SDL_!UnlockAudio__, __SDL_!PauseAudio__
----