Creates a stream from a Winamp input plug-in.
Namespace: Un4seen.Bass.AddOn.Winamp
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
Parameters
- file
- Type: SystemString
Filename for which a stream should be created. - flags
- Type: Un4seen.BassBASSFlag
Any combination of these flags: see BASSFlag.
Return Value
Type: Int32If successful, the new stream's handle is returned, else 0 is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
Examples
C#
int pluginHandle = BassWinamp.BASS_WINAMP_LoadPlugin( @"C:\Programme\Winamp\Plugins\in_mp3.dll" ); if (pluginHandle != 0) { int waStream = BassWinamp.BASS_WINAMP_StreamCreate( "test.mp3", BASSFlag.BASS_SAMPLE_SOFTWARE | BASSFlag.BASS_STREAM_AUTOFREE ); if (waStream != 0) { Bass.BASS_ChannelPlay( waStream, false ); } }
See Also