BASS.NET API for the Un4seen BASS Audio Library

BassWinampBASS_WINAMP_StreamCreate Method

BASS.NET API for the Un4seen BASS Audio Library
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

public static int BASS_WINAMP_StreamCreate(
	string file,
	BASSFlag flags
)

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: Int32
If successful, the new stream's handle is returned, else 0 is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

Works in the same way BASS_StreamCreateFile(String, Int64, Int64, BASSFlag) does - so for details look there.
Examples

Load the winamp mp3 input plugin and play a file:
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

Reference