本文整理汇总了C++中MikMod_free函数的典型用法代码示例。如果您正苦于以下问题:C++ MikMod_free函数的具体用法?C++ MikMod_free怎么用?C++ MikMod_free使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了MikMod_free函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AMF_Cleanup
static void AMF_Cleanup(void)
{
MikMod_free(mh);
MikMod_free(track);
mh=NULL;
track=NULL;
}
示例2: S3M_Cleanup
void S3M_Cleanup(void)
{
MikMod_free(s3mbuf);
MikMod_free(paraptr);
MikMod_free(poslookup);
MikMod_free(mh);
MikMod_free(origpositions);
}
示例3: IMF_Cleanup
static void IMF_Cleanup(void)
{
FreeLinear();
MikMod_free(imfpat);
MikMod_free(mh);
imfpat=NULL;
mh=NULL;
}
示例4: STX_Cleanup
static void STX_Cleanup(void)
{
MikMod_free(stxbuf);
MikMod_free(paraptr);
MikMod_free(poslookup);
MikMod_free(mh);
stxbuf=NULL;
paraptr=NULL;
poslookup=NULL;
mh=NULL;
}
示例5: MikMod_Exit_internal
void MikMod_Exit_internal(void)
{
MikMod_DisableOutput_internal();
md_driver->Exit();
md_numchn = md_sfxchn = md_sngchn = 0;
md_driver = &drv_nos;
if(sfxinfo) MikMod_free(sfxinfo);
if(md_sample) MikMod_free(md_sample);
md_sample = NULL;
sfxinfo = NULL;
initialized = 0;
}
示例6: pipe_Exit
static void pipe_Exit(void)
{
#if defined unix || (defined __APPLE__ && defined __MACH__)
int pstat;
pid_t pid2;
#endif
VC_Exit();
MikMod_free(audiobuffer);
if(pipeout) {
_mm_delete_file_writer(pipeout);
pipeout=NULL;
}
if(pipefile) {
#if !defined unix && (!defined __APPLE__ || !defined __MACH__)
#ifdef __WATCOMC__
_pclose(pipefile);
#else
pclose(pipefile);
#endif
#ifdef __EMX__
_fsetmode(stdout,"t");
#endif
#else
fclose(pipefile);
do {
pid2=waitpid(pid,&pstat,0);
} while (pid2==-1 && errno==EINTR);
#endif
pipefile=NULL;
}
}
示例7: MikMod_SetNumVoices_internal
/* If either parameter is -1, the current set value will be retained. */
BOOL MikMod_SetNumVoices_internal(int music, int sfx)
{
BOOL resume = 0;
int t, oldchn = 0;
if((!music)&&(!sfx)) return 1;
_mm_critical = 1;
if(isplaying) {
MikMod_DisableOutput_internal();
oldchn = md_numchn;
resume = 1;
}
if(sfxinfo) MikMod_free(sfxinfo);
if(md_sample) MikMod_free(md_sample);
md_sample = NULL;
sfxinfo = NULL;
if(music!=-1) md_sngchn = music;
if(sfx!=-1) md_sfxchn = sfx;
md_numchn = md_sngchn + md_sfxchn;
LimitHardVoices(md_driver->HardVoiceLimit);
LimitSoftVoices(md_driver->SoftVoiceLimit);
if(md_driver->SetNumVoices()) {
MikMod_Exit_internal();
if(_mm_errno)
if(_mm_errorhandler!=NULL) _mm_errorhandler();
md_numchn = md_softchn = md_hardchn = md_sfxchn = md_sngchn = 0;
return 1;
}
if(md_sngchn+md_sfxchn)
md_sample=(SAMPLE**)MikMod_calloc(md_sngchn+md_sfxchn,sizeof(SAMPLE*));
if(md_sfxchn)
sfxinfo = (UBYTE *)MikMod_calloc(md_sfxchn,sizeof(UBYTE));
/* make sure the player doesn't start with garbage */
for(t=oldchn;t<md_numchn;t++) Voice_Stop_internal(t);
sfxpool = 0;
if(resume) MikMod_EnableOutput_internal();
_mm_critical = 0;
return 0;
}
示例8: stdout_Exit
static void stdout_Exit(void)
{
VC_Exit();
#ifdef __EMX__
_fsetmode(stdout,"t");
#endif
MikMod_free(audiobuffer);
audiobuffer=NULL;
}
示例9: AIX_Exit
static void AIX_Exit(void)
{
VC_Exit();
if (fd>=0) {
close(fd);
fd=-1;
}
MikMod_free(audiobuffer);
}
示例10: pipe_CommandLine
static void pipe_CommandLine(CHAR *cmdline)
{
CHAR *ptr=MD_GetAtom("pipe",cmdline,0);
if(ptr) {
MikMod_free(target);
target=ptr;
}
}
示例11: ESD_CommandLine
static void ESD_CommandLine(const CHAR *cmdline)
{
CHAR *ptr=MD_GetAtom("machine",cmdline,0);
if (ptr) {
MikMod_free(espeaker);
espeaker=ptr;
}
}
示例12: AF_CommandLine
static void AF_CommandLine(CHAR *cmdline)
{
CHAR *machine=MD_GetAtom("machine",cmdline,0);
if(machine) {
if(soundbox) MikMod_free(soundbox);
soundbox=machine;
}
}
示例13: WAV_CommandLine
static void WAV_CommandLine(const CHAR *cmdline)
{
CHAR *ptr=MD_GetAtom("file",cmdline,0);
if(ptr) {
MikMod_free(filename);
filename=ptr;
}
}
示例14: commandLine
static void commandLine(CHAR *cmdline)
{
CHAR *ptr;
if((ptr=MD_GetAtom("card", cmdline, 0))) {
card=atoi(ptr);
MikMod_free(ptr);
}
}
示例15: ALSA_Exit_internal
static void ALSA_Exit_internal(void)
{
VC_Exit();
if (pcm_h) {
alsa_pcm_drain_playback(pcm_h);
alsa_pcm_close(pcm_h);
pcm_h=NULL;
}
MikMod_free(audiobuffer);
}