Questions tagged [bass]

BASS is an audio library for use in software on several platforms. Its purpose is to provide developers with powerful and efficient sample, stream (MP3, MP2, MP1, OGG, WAV, AIFF, custom generated, and more via OS codecs and add-ons), MOD music (XM, IT, S3M, MOD, MTM, UMX), MO3 music (MP3/OGG compressed MODs), and recording functions. All in a compact DLL that won't bloat your distribution.

BASS is an audio library for use in software on several platforms. Its purpose is to provide developers with powerful and efficient sample, stream (MP3, MP2, MP1, OGG, WAV, AIFF, custom generated, and more via OS codecs and add-ons), MOD music (XM, IT, S3M, MOD, MTM, UMX), MO3 music (MP3/OGG compressed MODs), and recording functions. All in a compact DLL that won't bloat your distribution.

C/C++, Delphi, Visual Basic, and MASM APIs are provided, with several examples to get you started. .Net and other APIs are also available.

BASS is also available for the Win64, WinCE, iOS, Android, and ARM Linux platforms.

Features:

  • Samples Support for WAV/AIFF/MP3/MP2/MP1/OGG and custom generated samples
  • Sample streams Stream any sample data in 8/16/32 bit, with both "push" and "pull" systems
  • File streams MP3/MP2/MP1/OGG/WAV/AIFF file streaming
  • Internet file streaming Stream data from HTTP and FTP servers (inc. Shoutcast, Icecast & Icecast2), with IDN and proxy server support and adjustable buffering
  • Custom file streaming Stream data from anywhere using any delivery method, with both "push" and "pull" systems
  • OS codecs ACM, Media Foundation and CoreAudio codec support for additional audio formats
  • Multi-channel streaming Support for more than plain stereo, including multi-channel OGG/WAV/AIFF files
  • MOD music Uses the same engine as XMPlay (very accurate, efficient, high quality reproduction), with full support for all effects, filters, stereo samples, DMO effects, etc...
  • MO3 music MOD music with MP3 or OGG compressed samples (vastly reduced file size with virtually identical sound quality), MO3s are created using the MO3 encoder
  • Multiple outputs Simultaneously use multiple soundcards, and move channels between them
  • Recording Flexible recording system, with multiple device support and input selection, (WMA encoding & broadcasting via the add-on, and other formats via BASSenc)
  • Decode without playback Streams and MOD musics can be outputted in any way you want (encoded, written to disk, streamed across a network, etc...)
  • Speaker assignment Assign streams and MOD musics to specific speakers to take advantage of hardware capable of more than plain stereo (up to 4 separate stereo outputs with a 7.1 soundcard)
  • High precision synchronization Synchronize events in your software to the streams and MOD musics, synchronize playback of multiple channels together
  • Effects Chorus / compressor / distortion / echo / flanger / gargle / parametric eq / reverb
  • Custom DSP Apply any effects that you want, in any order you want
  • 32 bit floating-point decoding and processing Floating-point decoding/rendering, DSP/FX, and recording
  • 3D sound Play samples/streams/musics in any 3D position
  • Flexible Small buffers for realtime performance, large buffers for stability, automatic and manual buffer updating, configurable threading, configurable SRC quality
  • Expandable Add-on system for additional format support and effects (C/C++ API available on request), dynamic plugin loading system, access to underlying DirectSound objects

Official Website: http://www.un4seen.com/bass.html

Useful Links:

115 questions
1
vote
0 answers

BASS.NET: Retrieving tags from file with image is incredibly slow

I'm using BASS.NET to power a music streaming program that I'm making. When I load audio files into my program, I also cache the tags of the file upon loading them so that I don't have to re-load every time I want to get a tag. However, I stumbled…
Bevin
  • 952
  • 6
  • 19
  • 35
1
vote
1 answer

BASS library: playing from memory

I am attempting to play sound clip held in a MemStream: TMemoryStream using the BASS dll. I can read it from a wav file and it plays OK, but I want to get it to read the memory stream directly. I have initialized the sound device on…
1
vote
0 answers

Bass library: unable to open slave in linux C++

Here is code: if (!BASS_Init(-1, 44100, 0, NULL, NULL)) { return 0; } DWORD chan = BASS_StreamCreateFile(FALSE, argv[1] , 0, 0, BASS_SAMPLE_LOOP); BASS_ChannelPlay(chan, FALSE); After compiling and running program i get following error: ALSA…
nick_redwill
  • 43
  • 1
  • 6
1
vote
3 answers

How can I make the program automatically exit after audio played over

I'm writing a small tool, it can play audio file in the command/terminal like sox. I'm using bass.dll and Golang syscall for Windows. Here is my code, files can downloaded from comments, only run on Windows X64. bass.go on github gist package…
raoyc
  • 191
  • 8
1
vote
0 answers

problem in play multi sound in inno setup

Im use bass lib to play 2 sound in my installer background sound (play in all installer page except license page) a sound only play when user enter license page (background sound pause and new sound play) im use some help to get license sound to…
sanab3343
  • 154
  • 1
  • 11
1
vote
1 answer

Creating flac file or flac stream using BASS dll with Delphi

I am playing with BASS from http://www.un4seen.com/. I need to create a flac file(16bits) or flac stream from user speaking on Microphone. I have seen this demo in BASS source code. There is a bassenc_flac.dll as well with these functions: function…
Luiz Alves
  • 2,575
  • 4
  • 34
  • 75
1
vote
0 answers

ffmpeg parse error with bass audio filter and expression evaluation

I am trying to dynamically change the bass of an audio file as a function of time. For instance, say I would like to gradually increase the bass over a period of 5 seconds. The command I am using is ffmpeg -y -i in.wav -af \ …
Shaun
  • 480
  • 6
  • 10
1
vote
1 answer

How to use the Bass library to convert audio to another format (using C#)

Good day everyone and happy holidays. I'm trying to create a "simple" program that allows me to create a list of video files (Youtube video's to be precise) that are then run through by my program and converted any given format to pure MP3 audio.…
Siemsen
  • 199
  • 1
  • 3
  • 13
1
vote
1 answer

.xm and .s3m file doesn't play in BASS library from Inno Setup, only .mp3

When I choose .mp3 file, it will play when launching setup.exe but when I change it to .xm or .s3m, it doesn't play [Setup] AppName=Bass Audio Project AppVersion=1.0 DefaultDirName={pf}\Bass Audio Project [Files] Source: "Bass.dll"; Flags:…
DDoS
  • 361
  • 3
  • 13
1
vote
1 answer

Marshal bool return as custom Return

I am currently wrapping Un4seen BASS audio library in .Net BASS functions returning a bool value, require checking LastError to know the Error that occurred if false is returned. So I implemented a Return class to make it object-oriented: using…
Mathew Sachin
  • 1,429
  • 1
  • 15
  • 20
1
vote
0 answers

BASS.NET PITCHSHIFT Effect doesn't work

I have tried other effects similar to this, but the PITCHSHIFT effect doesn't work. Why is it not being applied, and how can I fix it? The code to create and play the ch4 stream is in another function. BASS_BFX_PITCHSHIFT pitch = new…
Kennedy Souza
  • 164
  • 1
  • 13
1
vote
2 answers

Trouble with loading .so library

I have an android project (Inellij IDEA). I've download BASS library from official site and copied content from lib folder to my project folder libs/. But when I try to load it with System.loadLibrary("bass");, it throws an…
Vlad Markushin
  • 443
  • 1
  • 6
  • 24
1
vote
1 answer

c# - BASS.Net create a spectrogram at once (not playing the music file)

This code I found here creates a spectogram of a given file but it keeps me waiting while it is playing and drawing the spectrogram. I need to modify this code to create the spectrogram at once, without playing the file. Thanks in advance. public…
fatih
  • 73
  • 1
  • 13
1
vote
1 answer

"My First BASS Application" BASS.NET application error

I am trying to create an application with audio from the BASS.NET Library, but I am getting a few errors on the "My First BASS Application" sample. I followed the given directions on http://bass.radio42.com/help/, but when I try running the pasted…
William Lew
  • 485
  • 6
  • 17
1
vote
1 answer

Getting/Parsing ShoutCast Metadata

I currently making simple music player and would like to stream online radio. I managed to stream ShoutCast radio but the problem is I have no idea how to parse the title and artist from streaming metadata. Here is my code. Player.cs public…
Zerocchi
  • 614
  • 1
  • 8
  • 20