BASS.NET API for the Un4seen BASS Audio Library

BassSpx Class

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

Requires: bass_spx.dll - Speex Audio Codec (SPX) Add-On - available @ www.un4seen.com.

Inheritance Hierarchy

SystemObject
  Un4seen.Bass.AddOn.SpxBassSpx

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

public sealed class BassSpx

The BassSpx type exposes the following members.

Methods

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

This overload implements streaming from memory.

Public methodStatic memberBASS_SPX_StreamCreateFile(String, Int64, Int64, BASSFlag)
Creates a sample stream from a Speex 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_SPX_StreamCreateFileUser
Creates a sample stream from a Speex Audio file via a user callback function.
Public methodStatic memberBASS_SPX_StreamCreateURL
Creates a sample stream from a Speex Audio 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_spx.dll
Public fieldStatic memberSupportedStreamName
Supported file format name of the bass_spx.dll
Top
Remarks

BASS_SPX is an extension to the BASS audio library, enabling the playback of Speex files.

Speex is an open source and patent-free audio compression format designed for speech. The Speex Project aims to lower the barrier of entry for voice applications by providing a free alternative to expensive proprietary speech codecs. Moreover, Speex is well-adapted to Internet applications and provides useful features that are not present in most other codecs.

The Speex 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/URL/user functions, or call the BASS_SPX_StreamCreateFile(String, Int64, Int64, BASSFlag) /URL/User functions.

More information can be found on www.speex.org.

See Also

Reference