Creates a sample stream from a WMA file via a user callback function.
Namespace: Un4seen.Bass.AddOn.Wma
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
[DllImportAttribute("basswma")] public static int BASS_WMA_StreamCreateFileUser( BASSStreamSystem system, BASSFlag flags, BASS_FILEPROCS procs, IntPtr user )
Parameters
- system
- Type: Un4seen.BassBASSStreamSystem
File system to use: see BASSStreamSystem. - flags
- Type: Un4seen.BassBASSFlag
Any combination of these flags: see BASSFlag. - procs
- Type: Un4seen.BassBASS_FILEPROCS
The user defined file functions (see BASS_FILEPROCS). - user
- Type: SystemIntPtr
User instance data to pass to the callback functions.
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
ERROR CODE | Description |
---|---|
BASS_ERROR_WMA | The Windows Media modules (v9 or above) are not installed. |
BASS_ERROR_INIT | BASS_Init(Int32, Int32, BASSInit, IntPtr, IntPtr) has not been successfully called. |
BASS_ERROR_NOTAVAIL | Only decoding channels (BASS_STREAM_DECODE) are allowed when using the "no sound" device. The BASS_STREAM_AUTOFREE flag is also unavailable to decoding channels. |
BASS_ERROR_ILLPARAM | One or more of the parameters are invalid. |
BASS_ERROR_FILEOPEN | The file could not be opened. |
BASS_ERROR_FILEFORM | The file's format is not recognised/supported. |
BASS_ERROR_CODEC | There is no appropriate codec installed to decode the file. Try installing the latest Windows Media codecs. |
BASS_ERROR_FORMAT | The sample format is not supported by the device/drivers. If the stream is more than stereo or the BASS_SAMPLE_FLOAT flag is used, it could be that they are not supported. |
BASS_ERROR_SPEAKER | The specified SPEAKER flags are invalid. The device/drivers do not support them, they are attempting to assign a stereo stream to a mono speaker or 3D functionality is enabled. |
BASS_ERROR_MEM | There is insufficient memory. |
BASS_ERROR_NO3D | Could not initialize 3D support. |
BASS_ERROR_WMA_LICENSE | The WMA file can not be played because it is protected. |
BASS_ERROR_UNKNOWN | Some other mystery problem! |
Examples
See Also