本文整理汇总了C++中Mixer::close方法的典型用法代码示例。如果您正苦于以下问题:C++ Mixer::close方法的具体用法?C++ Mixer::close怎么用?C++ Mixer::close使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mixer
的用法示例。
在下文中一共展示了Mixer::close方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ControlSound
/*Control method to mute sound using WinMM header */
void ControlSound ( bool flagMute ) {
if ( MUTE_CHECK_FLAG ) {
Mixer mixer;
if ( mixer.init() && mixer.GetMuteControl() ) {
if ( flagMute )
mixer.SetMute ( true );
else
mixer.SetMute ( false );
}
mixer.close();
}
}
示例2: deinitMixer
/*
* Clean up and free all ressources of all found Mixers, which were found in the initMixer() call
*/
void MixerToolBox::deinitMixer()
{
//kdDebug(67100) << "IN MixerToolBox::deinitMixer()"<<endl;
Mixer *mixer;
while ( (mixer=Mixer::mixers().first()) != 0)
{
//kdDebug(67100) << "MixerToolBox::deinitMixer() Remove Mixer" << endl;
mixer->close();
Mixer::mixers().remove(mixer);
delete mixer;
}
// kdDebug(67100) << "OUT MixerToolBox::deinitMixer()"<<endl;
}
示例3: __cb_endprogram
void gdMainWindow::__cb_endprogram() {
if (!gdConfirmWin("Warning", "Quit Giada: are you sure?"))
return;
G_quit = true;
/* close any open subwindow, especially before cleaning PluginHost to
* avoid mess */
puts("GUI closing...");
gu_closeAllSubwindows();
/* write configuration file */
if (!G_Conf.write())
puts("Error while saving configuration file!");
else
puts("Configuration saved");
puts("Mixer cleanup...");
/* if G_audio_status we close the kernelAudio FIRST, THEN the mixer.
* The opposite could cause random segfaults (even now with RtAudio?). */
if (G_audio_status) {
kernelAudio::closeDevice();
G_Mixer.close();
}
puts("Recorder cleanup...");
recorder::clearAll();
#ifdef WITH_VST
puts("Plugin Host cleanup...");
G_PluginHost.freeAllStacks();
#endif
puts("Giada "VERSIONE" closed.");
hide();
delete this;
}