comparison src/audio/baudio/SDL_beaudio.cc @ 3830:29e83f221c62 SDL-ryan-multiple-audio-device

Fixed some things to use SDL C runtime functions.
author Ryan C. Gordon <icculus@icculus.org>
date Sat, 07 Oct 2006 19:56:47 +0000
parents b225d9820ee3
children 7c9663fb0860
comparison
equal deleted inserted replaced
3829:d3171647e661 3830:29e83f221c62
115 if (SDL_InitBeApp() < 0) { 115 if (SDL_InitBeApp() < 0) {
116 return 0; 116 return 0;
117 } 117 }
118 118
119 /* Parse the audio format and fill the Be raw audio format */ 119 /* Parse the audio format and fill the Be raw audio format */
120 memset(&format, '\0', sizeof(media_raw_audio_format)); 120 SDL_memset(&format, '\0', sizeof(media_raw_audio_format));
121 format.byte_order = B_MEDIA_LITTLE_ENDIAN; 121 format.byte_order = B_MEDIA_LITTLE_ENDIAN;
122 format.frame_rate = (float) this->spec.freq; 122 format.frame_rate = (float) this->spec.freq;
123 format.channel_count = this->spec.channels; /* !!! FIXME: support > 2? */ 123 format.channel_count = this->spec.channels; /* !!! FIXME: support > 2? */
124 while ((!valid_datatype) && (test_format)) { 124 while ((!valid_datatype) && (test_format)) {
125 valid_datatype = 1; 125 valid_datatype = 1;