Microsoft DirectX 8.0 (Visual Basic) |
Loads a segment from a resource. The segment can be in the format of a MIDI file, a wave file, or a segment authored in DirectMusic Producer.
object.LoadSegmentFromResource( _ moduleName As String, _ resourceName As String _ ) As DirectMusicSegment8
Returns a DirectMusicSegment8 object.
If the method fails, it raises an error, and Err.Number can be set to one of the following values:
DMUS_E_CHUNKNOTFOUND |
DMUS_E_FAIL |
DMUS_E_INVALIDARG |
DMUS_E_OUTOFMEMORY |
DMUS_E_LOADER_FAILEDOPEN |
DMUS_E_LOADER_FAILEDCREATE |
DMUS_E_LOADER_FORMATNOTSUPPORTED |
DMUS_E_UNSUPPORTED_STREAM |