- UID
- 3260
- 精华
- 积分
- 648
- 威望
- 点
- 宅币
- 个
- 贡献
- 次
- 宅之契约
- 份
- 最后登录
- 1970-1-1
- 在线时间
- 小时
|
MIDI
初始化
- Function winmmInitMidi As Integer
-
- Function = mciSendString( "open sequencer", Null, 0, 0 ) = 0
-
- End Function
复制代码
播放文件
- Function winmmPlayMidi( ByVal filename As String ) As Integer
-
- If( mciSendString( "open " + filename + " alias mymidifile", Null, 0, 0 ) <> 0 ) Then
- Return 0
- End If
-
- Function = mciSendString( "play mymidifile", Null, 0, 0 ) = 0
-
- End Function
复制代码
停止播放
- Function winmmStopMidi( ) As Integer
-
- mciSendString( "stop mymidifile", Null, 0, 0 )
-
- Function = mciSendString( "close mymidifile", Null, 0, 0 ) = 0
-
- End Function
复制代码
释放
- Function winmmEndMidi As Integer
-
- Function = mciSendString( "close sequencer", Null, 0, 0 ) = 0
-
- End Function
复制代码
WAV
- Function winmmPlayWave( ByVal filename As String ) As Integer
-
- Function = sndPlaySound( filename, SND_ASYNC )
-
- End Function
复制代码
|
|