|
|
|
|
|
BassFan
Guest
|
 |
« Reply #2 on: 20 Dec '07 - 20:00 » |
Quote
|
Hi i have a problem change the device for BASS_RecordGetInput with 2.4 procedure TfrmMain.ComboBox1Click(Sender: TObject); var Volumelevel: single; begin BASS_RecordGetInput(ComboBox1.ItemIndex, Volumelevel); LevelBar.Position := Trunc(Volumelevel * 100); end; procedure TfrmMain.LevelBarChange(Sender: TObject); begin
BASS_RecordSetInput(ComboBox1.ItemIndex, BASS_INPUT_ON, LevelBar.Position / 100); lblLevel.Caption := IntToStr(LevelBar.Position); end; 1. problem use Stereomix set VolumeLevel to 32 close my application and start a new instance then my Slider set to 31 close my application and start a new instance then my Slider set to 30 and so on the value of BASS_RecordGetInput inc. run a new instance -1 i hope you can understand my english german.. Habe da ein problem mit BASS_RecordGetInput 1. Der eingestellte Level wird richtig eingelesen und auch visualisiert allerdings nur solange bis die anwendung neu gestartet wird danach incrementiert die automatisch ohne das ich etwas verändert habe also immer um 1 und das bei jeden neustart der Anwendung. Eingestellte Value 40 nach dem zehnten neustart sind es nur noch 30 greets EDIT: problem solved Error: LevelBar.Position := Trunc(Volumelevel * 100); Fixed: LevelBar.Position := Round(Volumelevel * 100); Thanks to Radio42 has found this little bug
|
|
|
|
« Last Edit: 21 Dec '07 - 20:30 by BassFan »
|
Logged
|
|
|
|
|
BassFan
Guest
|
 |
« Reply #3 on: 20 Dec '07 - 21:06 » |
Quote
|
Error in VB API Declare Function BASS_ChannelLock Lib "bass.dll" (ByVal handle As Long, ByVal lock As Long) As Long you can not use lock in Vb as Parameter Rename it to chLock or what ever EDIT: problem solved greets BassFan
|
|
|
|
« Last Edit: 22 Dec '07 - 12:28 by BassFan »
|
Logged
|
|
|
|
|
BassFan
Guest
|
 |
« Reply #4 on: 20 Dec '07 - 21:12 » |
Quote
|
Error in Delphi Sample RecordTest
EDIT: problem solved
greets BassFan
|
|
|
|
« Last Edit: 22 Dec '07 - 12:27 by BassFan »
|
Logged
|
|
|
|
|
SoundMike
Posts: 154
|
 |
« Reply #5 on: 21 Dec '07 - 08:08 » |
Quote
|
Ian,
Looking forward to using 2.4.
When 2.4 is issued on general release (ie ater beta trials completed), will BASSASIO also be issued on general release? I presume there are no changes so far to BASSASIO as it has not been included in the 2.4 files.
Regards, Mike
|
|
|
|
|
Logged
|
Mike
|
|
|
|
Gamo
Posts: 74
|
 |
« Reply #6 on: 21 Dec '07 - 10:34 » |
Quote
|
Good job Ian, I got it work with my old code with some modification. I coding in VB6. (I used bass,bassmidi and bass_fx)
chan = BASS_MIDI_StreamCreateFile64(BASSFALSE, FileName, 0, 0, 0, 0, BASS_MIDI_DECAYEND Or BASS_STREAM_DECODE, 0)
' chan = BASS_MIDI_StreamCreateFile(BASSFALSE, FileName, 0, 0, BASS_MIDI_DECAYEND Or BASS_SAMPLE_SOFTWARE Or BASS_STREAM_DECODE, 0)
I got the problem with I try to call BASS_MIDI_StreamCreateFile it return error no. 5
The sound is better than bass 2.3.
Thank you
|
|
|
|
|
Logged
|
|
|
|
|
BassFan
Guest
|
 |
« Reply #7 on: 21 Dec '07 - 10:48 » |
Quote
|
Good job Ian, I got it work with my old code with some modification. I coding in VB6. (I used bass,bassmidi and bass_fx)
chan = BASS_MIDI_StreamCreateFile64(BASSFALSE, FileName, 0, 0, 0, 0, BASS_MIDI_DECAYEND Or BASS_STREAM_DECODE, 0)
' chan = BASS_MIDI_StreamCreateFile(BASSFALSE, FileName, 0, 0, BASS_MIDI_DECAYEND Or BASS_SAMPLE_SOFTWARE Or BASS_STREAM_DECODE, 0)
I got the problem with I try to call BASS_MIDI_StreamCreateFile it return error no. 5
The sound is better than bass 2.3.
Thank you
Hi use StrPtr for StreamCreateFile and read the helpfile of the new Lib  chan = BASS_MIDI_StreamCreateFile(BASSFALSE, StrPtr(FileName), 0, 0, BASS_MIDI_DECAYEND Or BASS_SAMPLE_SOFTWARE Or BASS_STREAM_DECODE, 0) greets BassFan
|
|
|
|
|
Logged
|
|
|
|
|
Gamo
Posts: 74
|
 |
« Reply #8 on: 21 Dec '07 - 14:49 » |
Quote
|
StrPtr is work for prjMidiTest but it does not work with my code. I declare "filename" as string and assign string like this
filename = "c:\midi\test.mid"
More defect is the output of BASSMIDI is MONO.
|
|
|
|
|
Logged
|
|
|
|
|
Ian @ un4seen
Administrator
Posts: 10421
|
 |
« Reply #9 on: 21 Dec '07 - 15:44 » |
Quote
|
Error in VB API ...
Thanks for the fixes. They are now in the BASS download. When 2.4 is issued on general release (ie ater beta trials completed), will BASSASIO also be issued on general release? I presume there are no changes so far to BASSASIO as it has not been included in the 2.4 files.
Yep, BASSASIO is unaffected by the BASS changes, apart from the included examples. I shall update those once the BASS 2.4 final is released. More defect is the output of BASSMIDI is MONO.
Oops! A correction is in the BASSMIDI download now.
|
|
|
|
|
Logged
|
|
|
|
|
Andrew Jameson
Posts: 48
|
 |
« Reply #10 on: 21 Dec '07 - 22:16 » |
Quote
|
Hi, Just noticed that I can download later beta versions !
I had an earlier beta and now I find, using the latest version, that the audio output is much quieter ... any ideas ?
Thanks
Andrew
|
|
|
|
|
Logged
|
|
|
|
|
Andrew Jameson
Posts: 48
|
 |
« Reply #11 on: 21 Dec '07 - 22:20 » |
Quote
|
Hi, There's a typo in BassMidi.pas ...
BASS_MIDI_StreamCreateFile references FILEPROCS - shouldn't it be BASS_FILEPROCS ?
Andrew
|
|
|
|
|
Logged
|
|
|
|
|
cih997
Posts: 4
|
 |
« Reply #12 on: 22 Dec '07 - 11:47 » |
Quote
|
Hi,
when can we expect BASS AAC+ 2.4 beta version?
|
|
|
|
|
Logged
|
|
|
|
|
Ian @ un4seen
Administrator
Posts: 10421
|
 |
« Reply #13 on: 22 Dec '07 - 14:41 » |
Quote
|
I had an earlier beta and now I find, using the latest version, that the audio output is much quieter ... any ideas ?
Are you using the BASS_CONFIG_GVOL_STREAM option? If so, you may be using an old volume range. In earlier betas the range was 100 or 1000, but it is now 10000. BASS_MIDI_StreamCreateFile references FILEPROCS - shouldn't it be BASS_FILEPROCS ?
Indeed, it should! A correction is now in the BASSMIDI download. when can we expect BASS AAC+ 2.4 beta version?
I've put that up now (in the first post).
|
|
|
|
|
Logged
|
|
|
|
|
Andrew Jameson
Posts: 48
|
 |
« Reply #14 on: 22 Dec '07 - 16:51 » |
Quote
|
Thanks Ian, Yes, I was using 1000 !
A quickie on Bass_MIDI. I've found that most of my problems have been down to the quality of the midi files. One common problem that I've come across is where a controller parameter is outside the expected range - i.e. controller 7 with a parameter of 140 ... I think that this is channel volume - and what happens is that I suddenly find that the track is apparently muted ... I don't know what your approach is in Bass_MIDI but wouldn't it be better to cap the parameter at 127 ?
Andrew
|
|
|
|
|
Logged
|
|
|
|
|
mystreamradio
Posts: 12
|
 |
« Reply #15 on: 23 Dec '07 - 02:24 » |
Quote
|
Hello there, First of all i would like to thank you all for this amazing library. I have been using Bass in the last year or so, developing under c# vs.net 2005. Everything is going very well, and I use this forum constantly, solving problems and debugging... Using Bass.Net 2.3 , I had a problem running my program under Vista. When I saw that 2.4 beta came out, I jumped on it, upgraded all my code to 2.4, and wished my Vista problem will be solved.... But I still have this problem ,and decided it is time to ask the experts.. After initilizing bass , i call this code to load WMA add-on :
//lets load the WMA add on BassWma.LoadMe(); // basswma.dll must be in same directory if (Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_WMA_PREBUF, 0) == false) { System.Windows.Forms.MessageBox.Show("Vista ERROR: " + Enum.GetName(typeof(BASSError), Bass.BASS_ErrorGetCode())); }
I have updated all my dll's to 2.4, and everything works fine in xp... but running in vista i always get this error coming from the Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_WMA_PREBUF, 0) . The error says : "Vista ERROR : BASS_ERROR_ILLPARAM"
I added the vista,to be sure this is where it happens... I cannot load or read wma correctly , but other then that all works well (bass itself loads and functions well)...
I would appriciate if anyone can help me solve this problem...I would like my program to run on vista...
Now since this post was not a 2.4 specific, I would like to tell you some more how nicely my upgrade from 2.3 to 2.4 went.. Everything went smooth, with just alittle code changes here and there. 1) I had a couple of int's changed into IntPtr. like mentioned by you. 2)Had to devide my volume value by 100 on ChannelSlideAttribute, ChannelSetAttribute (which now dropped their S at the end) , as now the range is from 0 (mute) to 1(full). Before to was from 0-100. 3) Had to change old flags to the new BassFlag Enum. 4) had to be sure to copy the new dll's......
took me all less then 20 minutes, and already started seeing things I like and will use.. So once again, thank you Eli
|
|
|
|
|
Logged
|
|
|
|
|
radio42
Posts: 2808
|
 |
« Reply #16 on: 23 Dec '07 - 11:29 » |
Quote
|
I'll just tested it here under Vista...and I got no error codes at all. All working fine. So there must be any other issue somewhere in your code. When do you call BASS_SetConfig? Is this the first thing you are doing (even before BASS_Init)?
|
|
|
|
|
Logged
|
|
|
|
|
mystreamradio
Posts: 12
|
 |
« Reply #17 on: 23 Dec '07 - 12:29 » |
Quote
|
Hi Radio42, first, thank you for your quick reply. this is how I call bass, on the Form LOAD event : BassNet.Registration("xxxxx", "xxxxx"); // check the version.. if (Utils.HighWord(Bass.BASS_GetVersion()) != Bass.BASSVERSION) { MessageBox.Show(this, "Wrong Bass Version!"); } if (Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero , null)) { Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_NET_PREBUF, 0); // so that we can display the buffering% //lets load the WMA add on //BassWma.LoadMe(); // basswma.dll must be in same directory if (BassWma.LoadMe() == false) { System.Windows.Forms.MessageBox.Show("BASSWMALOAD ERROR: " + Enum.GetName(typeof(BASSError), Bass.BASS_ErrorGetCode())); } if (Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_WMA_PREBUF, false) == false) { System.Windows.Forms.MessageBox.Show("Vista ERROR: " + Enum.GetName(typeof(BASSError), Bass.BASS_ErrorGetCode())); } return true; } this is how i init bass. I do have 2 dll's i have built using bass as well, and are refrenced in this project. maybe they call bass before the LOAD event of my main form?  Whats wierd is, it only happens to me on Vista ...and like I said Bass looks like it works good, just the wma fails. I will try to write a small clean program, using the same LOAD event, see if it works... please let me know if you have any other ideas.. gotto go to work, but will be back later today, and let this forum know if I do find anything... tnxs again Eli
|
|
|
|
|
Logged
|
|
|
|
|
Ian @ un4seen
Administrator
Posts: 10421
|
 |
« Reply #18 on: 23 Dec '07 - 13:49 » |
Quote
|
A quickie on Bass_MIDI. I've found that most of my problems have been down to the quality of the midi files. One common problem that I've come across is where a controller parameter is outside the expected range - i.e. controller 7 with a parameter of 140 ... I think that this is channel volume - and what happens is that I suddenly find that the track is apparently muted ... I don't know what your approach is in Bass_MIDI but wouldn't it be better to cap the parameter at 127 ?
As controller parameters should be 7-bit, the 8th bit is simply ignored, eg. 140 would become 12. I'm not really sure which of capping or ignoring is the better option. Btw, as a Delphi user, if you could update the MIDITEST example (to be like the C version), that would be handy  if (Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_WMA_PREBUF, 0) == false)
That reminds me. Contrary to what the docs currently state, the BASS_CONFIG_WMA_PREBUF option is actually disabled (FALSE) by default in the BASSWMA 2.4 beta. Instead of waiting for data in the stream creation or playback call, BASSWMA will instead just stall playback and automatically resume when the data arrives.
|
|
|
|
|
Logged
|
|
|
|
|
Andrew Jameson
Posts: 48
|
 |
« Reply #19 on: 23 Dec '07 - 20:08 » |
Quote
|
Hi Ian, I thought I'd give the miditest a go - converting it to Delphi ...
I think that there's another declaration error in BassMidi.pas :
function BASS_MIDI_StreamGetMark(handle:HSTREAM; mtype:DWORD; count:DWORD; var fonts:BASS_MIDI_MARK): BOOL; stdcall; external bassmididll;
The current declaration :
function BASS_MIDI_StreamGetMarks(handle:HSTREAM; mtype:DWORD; var fonts:BASS_MIDI_MARK; count:DWORD): DWORD; stdcall; external bassmididll;
I think is wrong ... BASS_MIDI_StreamGetMarks isn't in the help and the parameter order of fonts / count is wrong.
Perhaps you could confirm this ?
Andrew
|
|
|
|
|
Logged
|
|
|
|
|