BASS.NET API for the Un4seen BASS Audio LibraryBassOfr ClassBASS.NET API for the Un4seen BASS Audio Library
BASS.NET API wrapper for BASS_OFR.DLL

Requires: bass_ofr.dll and OptimFROG.dll - OptimFROG and OptimFROG DualStream Audio Codec (OFR) Add-On - available @ www.un4seen.com.

Inheritance Hierarchy

SystemObject
  Un4seen.Bass.AddOn.OfrBassOfr

Namespace: Un4seen.Bass.AddOn.Ofr
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

public sealed class BassOfr

The BassOfr type exposes the following members.

Methods

  NameDescription
Public methodStatic memberBASS_OFR_StreamCreateFile(IntPtr, Int64, Int64, BASSFlag)
Creates a sample stream from a OptimFROG or OptimFROG DualStream memory IntPtr.

This overload implements streaming from memory.

Public methodStatic memberBASS_OFR_StreamCreateFile(String, Int64, Int64, BASSFlag)
Creates a sample stream from a OptimFROG or OptimFROG DualStream file.

This overload implements Unicode filenames. The BASS_UNICODE flag will be added automatically.

Public methodStatic memberCode exampleBASS_OFR_StreamCreateFileUser
Creates a sample stream from a OptimFROG or OptimFROG DualStream file via a user callback function.
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_ofr.dll
Public fieldStatic memberSupportedStreamName
Supported file format name of the bass_ofr.dll
Top
Remarks

BASS_OFR is an extension to the BASS audio library, enabling the playback of OptimFROG and OptimFROG DualStream files.

OptimFROG is a lossless audio compression program. Its main goal is to reduce the size of audio files, while permitting bit identical restoration of all input. OptimFROG DualStream is aimed at filling the big gap between perceptual coding and lossless coding. The goal is to offer real transparent audio coding at half or less the bitrate generally used by lossless coding, and also to permit progressive consistent increase of the quality level, until lossless coding is reached.

The OptimFROG 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_OFR_StreamCreateFile(String, Int64, Int64, BASSFlag) /User functions.

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

See Also

Reference