// sample14.hsp 重い動画でも音声だけは途切れずに極力再生?するサンプル(転送が追いつかないものは無理) #include "hspdsp.as" dsp_Init ; 初期化 dialog "*",16,"メディアファイル" if stat=0:end // システム標準のレンダラーで開く dsp_Open refstr,OPEN_DEFAULT_RENDERER,0,0,0 //オーディオの同期許容値 dsp_SetAudioClockSlave 1 //同期設定(しないほうが、音が途切れにくくなります。) dsp_SetGraphStreams 0,100000 onexit *exit ; 終了時開放するため dsp_Play hwnd,0,0,640,480 ; 0,0 座標に 640x480 の大きさで表示 stop *exit dsp_Stop dsp_Close ; メディアファイルを閉じる dsp_Exit ; 開放 end