test/testaudiocapture.c
changeset 10298 06e7d0ccbc11
parent 10285 b1f031450499
child 10737 3406a0f8b041
equal deleted inserted replaced
10297:33cdc67b4990 10298:06e7d0ccbc11
   133        circumstances. */
   133        circumstances. */
   134 
   134 
   135     SDL_Log("Opening default playback device...\n");
   135     SDL_Log("Opening default playback device...\n");
   136     devid_out = SDL_OpenAudioDevice(NULL, SDL_FALSE, &wanted, &spec, SDL_AUDIO_ALLOW_ANY_CHANGE);
   136     devid_out = SDL_OpenAudioDevice(NULL, SDL_FALSE, &wanted, &spec, SDL_AUDIO_ALLOW_ANY_CHANGE);
   137     if (!devid_out) {
   137     if (!devid_out) {
   138         SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't open an audio device for capture: %s!\n", SDL_GetError());
   138         SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't open an audio device for playback: %s!\n", SDL_GetError());
   139         SDL_Quit();
   139         SDL_Quit();
   140         exit(1);
   140         exit(1);
   141     }
   141     }
   142 
   142 
   143     SDL_Log("Opening capture device %s%s%s...\n",
   143     SDL_Log("Opening capture device %s%s%s...\n",