BASS.NET API for the Un4seen BASS Audio Library

BassMpc Class

BASS.NET API for the Un4seen BASS Audio Library
BASS.NET API wrapper for BASS_MPC.DLL

Requires: bass_mpc.dll - MusePack Audio Codec (MPC) Add-On - available @ www.un4seen.com.

Inheritance Hierarchy

SystemObject
  Un4seen.Bass.AddOn.MpcBassMpc

Namespace:  Un4seen.Bass.AddOn.Mpc
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

public sealed class BassMpc

The BassMpc type exposes the following members.

Methods

  NameDescription
Public methodStatic memberBASS_MPC_StreamCreateFile(IntPtr, Int64, Int64, BASSFlag)
Creates a sample stream from a MusePack Audio memory IntPtr.

This overload implements streaming from memory.

Public methodStatic memberBASS_MPC_StreamCreateFile(String, Int64, Int64, BASSFlag)
Creates a sample stream from a MusePack Audio file.

This overload implements UNICODE filenames. The BASS_UNICODE flag will be added automatically, since all .Net strings are always unicode.

Public methodStatic memberCode exampleBASS_MPC_StreamCreateFileUser
Creates a sample stream from a MusePack Audio file via a user callback function.
Public methodStatic memberBASS_MPC_StreamCreateURL
Creates a sample stream from a MPC file on the internet, optionally receiving the downloaded data in a callback.
Public methodStatic memberFreeMe
Unloads this library. This must be called when you have previously called LoadMe.
Public methodStatic memberLoadMe
Loads this library into memory. The library will be search in the current application directory.
Public methodStatic memberLoadMe(String)
Loads this library into memory. The library will be loaded from the given path.
Top
Fields

  NameDescription
Public fieldStatic memberSupportedStreamExtensions
Supported file extensions of the bass_mpc.dll
Public fieldStatic memberSupportedStreamName
Supported file format name of the bass_mpc.dll
Top
Remarks

BASS_MPC is an extension to the BASS audio library, enabling the playback of MusePack files.

MusePack is an audio compression format with a strong emphasis on high quality. It's not lossless, but it is designed for transparency, so that you won't be able to hear differences between the original lossless file and the much smaller MPC. It is based on the MPEG 1 Layer II algorithms, but has rapidly developed and vastly improved and is now at an advanced stage in which it contains heavily optimized and patentless code.

The MusePack format is used in the same way as any of the built-in BASS stream formats. Simply call BASS_PluginLoad(String) to load the add-on into BASS and benefit the usage of the standard sample/stream/user functions, or call the BASS_MPC_StreamCreateFile(String, Int64, Int64, BASSFlag) /User functions.

More information can be found on www.musepack.net.

See Also

Reference