comparison src/audio/SDL_audio.c @ 4398:fe15c4e8efe6 SDL-1.2

1.2: let PulseAudio hook into SDL_WM_SetCaption(). This lets Pulse's system-wide list of currently playing sources have accurate names for SDL applications. DO NOT MERGE WITH 1.3...we'll design a more formal API there.
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 24 Jan 2010 08:35:09 +0000
parents 33570eec2d4f
children 963f939494a1
comparison
equal deleted inserted replaced
4397:fb1fc6c9289e 4398:fe15c4e8efe6
691 } 691 }
692 spec->size = (spec->format&0xFF)/8; 692 spec->size = (spec->format&0xFF)/8;
693 spec->size *= spec->channels; 693 spec->size *= spec->channels;
694 spec->size *= spec->samples; 694 spec->size *= spec->samples;
695 } 695 }
696
697 void SDL_Audio_SetCaption(const char *caption)
698 {
699 if ((current_audio) && (current_audio->SetCaption)) {
700 current_audio->SetCaption(current_audio, caption);
701 }
702 }
703