コード例 #1
0
ファイル: eventSoundTest1.c プロジェクト: adamh/gnash-fork
void
runNoMultipleSoundsTest(SWFMovie mo, SWFSound so, int* frame)
{
  const char* frameDesc[5];
  int i;

  SWFMovie_nextFrame(mo);
  add_actions(mo,
              "note('\nNon-multiple Sound Test\n"
              "The notes should start exactly at the beginning "
              "of a frame (to coincide with the appearance of the description "
              "text)');");
            

  /* This is what is supposed to happen in each frame */
  frameDesc[0] = "Two notes (C, E)";
  frameDesc[1] = "One note (G)";
  frameDesc[2] = "Two notes (C, E) ";
  frameDesc[3] = "One note (G)";
  frameDesc[4] = "Nothing";


    for (i = 0; i < 4; i++)
    {

        printFrameInfo(mo, i, frameDesc[i]);

        SWFSoundInstance so_in = SWFMovie_startSound(mo, so);
        SWFSoundInstance_setNoMultiple(so_in);

        SWFMovie_nextFrame(mo); (*frame)++;
    }

    //SWFMovie_nextFrame(mo);

    printFrameInfo(mo, i, frameDesc[i]);
    SWFMovie_stopSound(mo, so);

}
コード例 #2
0
ファイル: minghsp.c プロジェクト: tkhaga/MingHSP
EXPORT BOOL WINAPI m_stopSound(SWFSound sound, int p2, int p3, int p4)
{
	lstrcpy(funcname, "m_stopSound");
	SWFMovie_stopSound(mhsp_movie, sound);
	return 0;
}
コード例 #3
0
ファイル: minghsp.c プロジェクト: tkhaga/MingHSP
EXPORT BOOL WINAPI m_stopSound(SWFDisplayItem item, int p2, int p3, int p4)
{
	lstrcpy(funcname, "m_stopSound");
	SWFMovie_stopSound(mhsp_movie, item);
	return 0;
}