View Full Version : BassAudio - New version (2014-12-12)
tebasuna51
14th March 2008, 13:13
IMPORTANT EDIT
At this moment (2016) I recommend use LWLibavAudioSource like AviSynth audio decoder instead BassAudio (or NicAudio).
Then I never will make new versions of BassAudio.
---------------------------------------------------------------------------------------------------- EDIT END
I open a new thread to request everybody interested to test this new version.
BassAudio2410.7z (https://www.sendspace.com/file/vwodyl)
I think the problems are solved now. My first test with aac and wma seems work fine.
Please send yours results here.
EDIT: New version thanks to forclip.
The 2.4.10 version is included also in last BeHappy (http://www.codeplex.com/BeHappy) package (read carefully the readme.txt in plugins folder)
shon3i
14th March 2008, 18:19
Can you use some other hosting please?
I think the problems are solved now. My first test with aac and wma seems work fine.
Did 5.1 AAC and WMA decoding work?
tebasuna51
14th March 2008, 18:41
Can you use some other hosting please?
Select one for your convenience.
I'm still waiting your register in CodePlex to do a new BeHappy package (now we can add this bass version).
Did 5.1 AAC and WMA decoding work?
Work fine with my samples.
Don't work for me:
.mid
.ac3 with non standard acmod channels (e = empty channel):
2/0.1 -> L,e,R,FE,e,e
2/1.0 -> L,R,BC,BC
3/0.1 -> L,R,C,FE,e,e
3/1.0 -> L,R,C,BC,BC
2/1.1 -> L,BC,R,FE,BC,e
3/1.1 -> L,R,C,FE,BC,BC
2/2.1 -> L,BL,R,FE,BR,e
ok with 1/0.0, 1/0.1, 2/0.0, 3/0.0, 2/2.0, 3/2.0, 3/2.1
(all work fine with a new NiacAudio.dll version pending to publish)
For me BassAudio is the AviSynth decoder for Flac, Cda(Audio CD), Ogg, Wma and Aac/M4a (Stereo/5.1/LC/HE/PS tested).
Waiting for test in other formats like: alac, ape, mpc, ofr, spx, tta, wv
but I think we can be optimist, I think these formats can be always optional.
kypec
14th March 2008, 20:00
Select one for your convenience.
Please post it to http://ulozto.net/ because I'd like to try this new version too:thanks: and MEGAUPLOAD Toolbar is big NO NO on my PC:devil:
tebasuna51
14th March 2008, 20:05
New link to BassAudio23.7z
EDIT: Link deleted
Use instead 2.4 version included in BeHappy (http://www.codeplex.com/BeHappy) package (read carefully the readme.txt in plugins folder)
Southstorm
17th March 2008, 13:57
Having some trouble downloading....
Nevermind, finally got it. Thanks.
SpAwN_gUy
8th May 2008, 10:15
hello.. i dunno where to post, so...
as BeHappy is UpDated to 2.4 bass, and the BassAudio.dll is also updated... can anyone make a package of 2.4, that "WORKS"...
'cause on the main site of bass dll (http://www.un4seen.com/bass.html) there are no (taken form beHappy readme)
bass_cda.dll Optional to read CD Audio. Link(1)
bass_flac.dll Optional to read Flac until v1.2.1. Link(1)
bass_wv.dll Optional to read WV, WavPack Audio. Link(1) and when other plugins are updated, some older plugz show errors, like.. "Bass.dll version 2.2 is needed", and "bass.dll version 2.3 is required" (the first one might be my problem, as far as i have the extermely old beHappy package)
tebasuna51
8th May 2008, 11:46
hello.. i dunno where to post, so...
Here is Ok. Or in Behappy thread (http://forum.doom9.org/showthread.php?t=104686).
as BeHappy is UpDated to 2.4 bass, and the BassAudio.dll is also updated... can anyone make a package of 2.4, that "WORKS"...
'cause on the main site of bass dll (http://www.un4seen.com/bass.html) there are no
I can't send you other than the last v2.4 from un4seen, maybe ...
(taken form beHappy readme)
bass_cda.dll Optional to read CD Audio. Link(1)
bass_flac.dll Optional to read Flac until v1.2.1. Link(1)
bass_wv.dll Optional to read WV, WavPack Audio. Link(1)
also from the readme:
"There are some bass*.dll than must be renamed to bass_*.dll to be load properly in AviSynth."
and basscd.dll, bassflac.dll, basswv.dll and basswma.dll must be renamed to bass_SOMETHING.dll, because BassAudio.dll (Bass-AviSynth interface) first need load the main dll (bass.dll) and after any other Bass subplugins (bass_*.dll).
and when other plugins are updated, some older plugz show errors, like.. "Bass.dll version 2.2 is needed", and "bass.dll version 2.3 is required" (the first one might be my problem, as far as i have the extermely old beHappy package)
This is a Bass requisite all dll must match the version and also BassAudio.dll (AviSynth interface) must match. The correct procedure to upgrade to 2.4 version is delete Bass*.dll from ...\AviSynth 2.5\plugins folder, load BassAudio.dll v2.4 from the last BeHappy release, and from un4seen site the main bass.dll (v2.4.x) and any other Add-on (v2.4.x) renamed to bass_*.dll
Of course only decoder Add-ons are tested with AviSynth.
stax76
23rd September 2008, 22:30
It's really great to have this plugin, one little issue though: startup opening scripts takes 2-3 seconds longer just putting the libraries in the plugin auto load folder, even if the script don't use the plugin, shutdown is also noticable slower.
tebasuna51
23rd September 2008, 23:13
It's really great to have this plugin, one little issue though: startup opening scripts takes 2-3 seconds longer just putting the libraries in the plugin auto load folder, even if the script don't use the plugin, shutdown is also noticable slower.
Yep, you always can put all .dll at another folder and load explictly only the plugins needed in the script.
To use the Bass lib's you only need for instance:
LoadPlugin("C:\Temp\BassAudio.dll")
at "C:\Temp\" you need BassAudio.dll, Bass.dll and the optional Bass_*.dll
mikeytown2
23rd September 2008, 23:40
Can this be used to load winamp DSP plugins in AviSynth?
http://un4seen.com/bass.html#maddons
Also could we use the BASS lib to do this?
http://forum.doom9.org/showthread.php?t=141063
Gavino
24th September 2008, 01:28
Can this be used to load winamp DSP plugins in AviSynth?
BassAudio only provides a source filter, for the formats supported by BASS. It does not currently support any of BASS's DSP features. (Strangely, I was looking at this only the other day, with the thought of perhaps using the BASS VST add-on as a way of getting VST plugins into Avisynth.)
Also could we use the BASS lib to do this? [output audio for a frame]
If you mean to write an AVisynth plugin using the BASS lib as the audio renderer, then in principle, yes, and I imagine it would be easier than using DirectSound.
tebasuna51
24th September 2008, 02:20
I don't know. You can try.
I read your thread and I can't imagine for what you need so. You can play avs files in VirtualDub or MPC.
Good luck.
Gavino
27th September 2008, 15:28
Don't work for me:
.mid
Any idea why .mid doesn't work properly?
I have the BASS midi add-on and an appropriate soundfont installed, and the BASS midi test works perfectly. However, when using BassAudioSource with a midi file in Avisynth, I can hear chunks of what sounds intermittently like the right output, but it is obviously not complete.
Looking at the resulting audio file with a wave editor, I can see that it is the right length, but consists of short bursts of sound interpersed with longer bursts of silence.
Any ideas?
Gavino
2nd October 2008, 20:24
@tebasuna51
After some experimentation, and a little intelligent guesswork, I've found the source of the problem with .mid, and how to fix it.
My diagnosis is that BASS_ChannelSetPosition on a Midi stream does not take into account notes already playing at the new position.
I don't know if this is a bug or a feature in the BASS Midi library, but with the way BassAudioSource uses BASS_ChannelSetPosition on each GetAudio call, the result is that notes are cut off and do not sound for their full length.
The solution (which I have tested) is to change this line (in bassAudioSource::GetAudio)
BASS_ChannelSetPosition(_streamHandle, pos, BASS_POS_BYTE); // 2.4
to this
QWORD currPos = BASS_ChannelGetPosition(_streamHandle, BASS_POS_BYTE);
if (pos != currPos)
BASS_ChannelSetPosition(_streamHandle, pos, BASS_POS_BYTE); // 2.4
ie do not call BASS_ChannelSetPosition if the position is already correct.
tebasuna51
3rd October 2008, 02:30
@Gavino
I don't know your BassAudio.cpp because the last source for bassAudioSource::GetAudio is :
void __stdcall bassAudioSource::GetAudio(void* buf, __int64 start, __int64 count, IScriptEnvironment* env) {
...
QWORD pos = start;
pos *= vi.BytesPerAudioSample();
if (start != last_sample) BASS_ChannelSetPosition(_streamHandle, pos, BASS_POS_BYTE); // 2.4
DWORD length = count;
length *= vi.BytesPerAudioSample();
BASS_ChannelGetData( _streamHandle, buf, length);
last_sample = start + count;
}
then only call BASS_ChannelSetPosition when the sample required isn't the last sample read + 1, same idea than you but with samples instead bytes.
Is the main patch I make to original bassaudio from Dimzon, when BASS_ChannelSetPosition is called the decoders are initialized and lose info from precedent frame.
Gavino
3rd October 2008, 17:21
ĦAy, que tonto! :o
Turns out I was using an older version of BassAudio which I got from this post. I think I got confused by the filename bassAudio23_24.7z into thinking that it was the latest version, in place of the real one (bassAudio23.7z). Sorry about that.
Incidentally, I see that last_sample is initialised to 2, a valid (though unlikely) value for the first GetAudio call.
Wouldn't 0 (or -1 if you want to force at least one call to BASS_ChannelSetPosition) be a better value to use?
A further question:
I am thinking of using the BASS libraries to allow VST (and possibly Winamp) DSP effects to be used within Avisynth. Do you think it would make sense to combine this with BassAudio (as an additional function) or do you think a completely separate plugin would be more appropriate? Bear in mind that there would be some code in common, eg loading the BASS libraries.
tebasuna51
3rd October 2008, 21:43
ĦAy, que tonto! :o
Turns out I was using an older version of BassAudio which I got from this post. I think I got confused by the filename bassAudio23_24.7z into thinking that it was the latest version, in place of the real one (bassAudio23.7z). Sorry about that.
The last BassAudio sources are always at last BeHappy release (http://www.codeplex.com/BeHappy) (plugins folder).
Incidentally, I see that last_sample is initialised to 2, a valid (though unlikely) value for the first GetAudio call.
Wouldn't 0 (or -1 if you want to force at least one call to BASS_ChannelSetPosition) be a better value to use?
Can be -1 of course.
A further question:
I am thinking of using the BASS libraries to allow VST (and possibly Winamp) DSP effects to be used within Avisynth. Do you think it would make sense to combine this with BassAudio (as an additional function) or do you think a completely separate plugin would be more appropriate? Bear in mind that there would be some code in common, eg loading the BASS libraries.
You can use the same plugin, if we detect any problem then you can make another.
morphinapg
28th February 2009, 18:53
The last BassAudio sources are always at last BeHappy release (http://www.codeplex.com/BeHappy) (plugins folder).
There is no plugins folder in the current release
tebasuna51
1st March 2009, 03:18
The BeHappy interface with bass libraries don't change (BeHappy release 0.2.2.30338) if Bass remain at 2.4 version.
You can download the last Bass changes in http://www.un4seen.com/
Midzuki
27th May 2009, 15:39
To whom this may interest, the version 2.4 of BassAudio is included in the archive BeHappy_r13913.7z, which can be downloaded from:
http://www.videohelp.com/tools/BeHappy/old-versions#download
HTH.
tebasuna51
28th May 2009, 11:10
Yep, the last BeHappy release is only the BeHappy.exe and the full package is in the previous one BeHappy_r13913.7z
Reino
25th December 2011, 21:56
Loadplugin("X:\BeHappy 0.2.5.30809\plugins\BassAudio.dll")
BassAudioSource("X:\file.umx")Is there a reason why opening tracker music (umx/mod/mo3/s3m/xm/it) fails with BassAudioSource? Or is opening audio through Avisynth limited to sample audio?
tebasuna51
26th December 2011, 18:34
... Or is opening audio through Avisynth limited to sample audio?
Yes, don't work with umx/mod/mo3/s3m/xm/it.
tebasuna51
29th December 2011, 11:54
To convert tracker music to standard audio files I know two methods:
1) Use an Audio Editor (Audacity, Goldwave, Audition, SoundForge, ...) to record the output of your sound card (quality fixed by your card synthesizer).
2) Foobar2000 with foo_midi.dll plugin and one, or more, SoundFonts. I wrote a guide (in spanish language) with some old links, maybe can help you:
http://www.mundodivx.org/foro/index.php?topic=38503.15;msg=160405
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.