|
|
|
VegasGuy55
Posts: 1
|
 |
« Reply #1081 on: 21 May '12 - 18:30 » |
Quote
|
The file and product version being reported by the dll inb all the latest downloads is 2.4.0.0, NOT 2.4.9.0.
Is this a typo?
VegasGuy55
|
|
|
|
|
Logged
|
|
|
|
|
jjohnston
Posts: 36
|
 |
« Reply #1082 on: 21 May '12 - 18:34 » |
Quote
|
Everything seems to be working great, thanks!
|
|
|
|
|
Logged
|
|
|
|
|
HarryHar
Posts: 135
|
 |
« Reply #1083 on: 22 May '12 - 10:36 » |
Quote
|
Hi,
Is it true that you have to create a new waveform everytime? I am trying to re-use a created waveform, but it refuses to calculate the waveform.
I create a WaveForm in the formload en using it in a button press.
if I run this code 1 time, the peakfile is created an has data inside the file.
waveForm.RenderStart(decodeStream, false, false); waveForm.WaveFormSaveToFile("c:\\temp\\peak.wf", true); waveForm.Reset();
If I run this code a second time RenderStart returns immediately, the peakfile is updated, but apart from the header it contains only 0's.
What am I doing wrong?
|
|
|
|
|
Logged
|
|
|
|
|
jdg2011
Posts: 18
|
 |
« Reply #1084 on: 24 May '12 - 05:27 » |
Quote
|
Hello Guys, Radio42 I have attatched two screen shots of the file version & assembly version of the latest Bass.NET 2.4.9.0 I was wondering if there was going to be a recompiled version of the bass.net.dll with the file version = 2.4.9.0 I seem to be having installer issues with Advanced Installer and I think it might be related to the installer comparing the file version to the assembly version being miss matched? I know that in the AI I can over ride this in the assemblies .NET options properties, but I would greatly not like to do this as I may forget to change this back once the file shows the correct file version. Thank you  Both of the screenshots below were taken from the latest version of Advanced Installer Ultimate Edition. BASS ROCKS !!!!
|
|
|
« Last Edit: 24 May '12 - 05:35 by jdg2011 »
|
Logged
|
|
|
|
|
valfis86
Posts: 4
|
 |
« Reply #1085 on: 26 May '12 - 20:53 » |
Quote
|
Hello.
I am trying to find a way to adjust only the current streams volume. I am using the Bass.BASS_ChannelSetAttribute method using the BASSAttribute.BASS_ATTRIB_VOL parameter, as suggested in the help files. But the current volume of the system also changes. I have also tried the other volume flags but the systems volume always changes too.
Any suggestions?
thanks for help, Valentin
|
|
|
|
« Last Edit: 27 May '12 - 10:10 by valfis86 »
|
Logged
|
|
|
|
|
gnag
Posts: 160
|
 |
« Reply #1086 on: 27 May '12 - 00:28 » |
Quote
|
@valfis86: Please do not hijack this Thread, create a new one !
|
|
|
|
|
Logged
|
|
|
|
|
valfis86
Posts: 4
|
 |
« Reply #1087 on: 27 May '12 - 10:04 » |
Quote
|
Sorry, I thougt this thread is also for questions regarding the Bass.NET API.
|
|
|
|
|
Logged
|
|
|
|
|
radio42
Posts: 4030
|
 |
« Reply #1088 on: 29 May '12 - 11:48 » |
Quote
|
Yes, there was a typo in the file version number (which reports v2.4.0.0 instead of v2.4.9.0)! An updated version is now available. You might simply download the lib only version and replace the contained files in your installation folder. Lib only: www.un4seen.com/filez/4/Bass24.Net_update.zip
|
|
|
|
|
Logged
|
|
|
|
|
ken
Posts: 630
|
 |
« Reply #1089 on: 24 Jun '12 - 13:34 » |
Quote
|
StreamingServer Class Hi, I try to run the "local streamserver" and looked at your code "MyOwnServer", I use EncoderLAME, but I can't get it running. I belive Recoding works since DSP_PeakLevelMeter works. Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero); Bass.BASS_RecordInit(audioDevice); _recProc = new RECORDPROC(RecordingHandler); _recHandle = Bass.BASS_RecordStart(44100, 2, BASSFlag.BASS_DEFAULT, _recProc, IntPtr.Zero);
_plm = new DSP_PeakLevelMeter(_recHandle, 1); _plm.CalcRMS = false; _plm.UpdateTime = 0.01F; _plm.Notification += new EventHandler(_plm_Notification);
EncoderLAME _EncoderLAME = new EncoderLAME(_recHandle); _EncoderLAME.InputFile = null; //STDIN _EncoderLAME.OutputFile = null; //STDOUT _EncoderLAME.LAME_Bitrate = 320; _EncoderLAME.LAME_UseVBR = false;
_EncoderLAME.Start(null, IntPtr.Zero, false);
MyOwnServer _MyOwnServer = new MyOwnServer(_EncoderLAME, true); bool _ret = _MyOwnServer.Connect();
Console.WriteLine("Connected: " + _ret); /returns false
Any suggestions, or some C# sample code? Thanks!
|
|
|
|
|
Logged
|
|
|
|
|
radio42
Posts: 4030
|
 |
« Reply #1090 on: 25 Jun '12 - 12:29 » |
Quote
|
I guess you are referring to the "MyOwnServer" prototype example as given in the abstract "StreamingServer" class? Note, that this is just a proto-type which misses various internal implementations. How have you implemented these, how does you actual "MyOwnServer" implementation look like...and where are you getting what errors? Guess when you are debugging your code, this should give you some more detials... Without these details it is hard to tell you what's wrong or not.
|
|
|
|
|
Logged
|
|
|
|
|
ken
Posts: 630
|
 |
« Reply #1091 on: 25 Jun '12 - 14:09 » |
Quote
|
I guess you are referring to the "MyOwnServer" prototype example as given in the abstract "StreamingServer" class? Note, that this is just a proto-type which misses various internal implementations. How have you implemented these, how does you actual "MyOwnServer" implementation look like...and where are you getting what errors? Guess when you are debugging your code, this should give you some more detials... Without these details it is hard to tell you what's wrong or not.
Yes that is correct. Not sure what to do with "MyLogin" and "MyInit" so I just return true, and "SendData" I assume the Encoder uses that? Is the StreamingServer Class ment to be a streamingserver like Shoutcast/Icecast so I can stream from my application, and connect with say WinAmp over http? /Ken
|
|
|
|
|
Logged
|
|
|
|
|
radio42
Posts: 4030
|
 |
« Reply #1092 on: 26 Jun '12 - 15:30 » |
Quote
|
No, that's not the case. As said, its only a prototype, but it needs to be implemented by yourself. Especially the "Connect()" method must be implemented. The "SendData" method might simply return the 'length' given - but that depends on your implementation and what the server should actually do, what protocol it uses etc.
|
|
|
|
|
Logged
|
|
|
|
|
ken
Posts: 630
|
 |
« Reply #1093 on: 26 Jun '12 - 16:19 » |
Quote
|
No, that's not the case. As said, its only a prototype, but it needs to be implemented by yourself.
Ah, my mistake. I found the methods I was looking for, "Bass_Encoder_ServerInit" and I got it working thanks to your code examples in documentation. Thanks!
|
|
|
|
|
Logged
|
|
|
|
|
ken
Posts: 630
|
 |
« Reply #1094 on: 26 Jun '12 - 18:25 » |
Quote
|
Strangely on all my computers except my dev machine, I get error on "BASS_Encode_Start" I get "BASS_ERROR_FILEOPEN" when using OGG codec. LAME works fine on all computers. Can I set the path to the codec (oggenc2.exe) some how, or what is the problem? _encoderCh = BassEnc.BASS_Encode_Start(_recHandle, "oggenc -r -R 44100 -M " + cmbBitrate.Text + " -m " + cmbBitrate.Text + " -", BASSEncode.BASS_ENCODE_NOHEAD, null, IntPtr.Zero);
_ret = BassEnc.BASS_Encode_ServerInit(_encoderCh, txtPort.Text, 64000, 64000, BASSEncodeServer.BASS_ENCODE_SERVER_DEFAULT, null, IntPtr.Zero);
/Ken -- NOTE -- Problem solved, used EncoderOGG _EncoderOGG = new EncoderOGG(_recHandle) instead of BassEnc.BASS_Encode_Start
|
|
|
|
« Last Edit: 26 Jun '12 - 18:52 by ken »
|
Logged
|
|
|
|
|
HarryHar
Posts: 135
|
 |
« Reply #1095 on: 8 Jul '12 - 22:09 » |
Quote
|
Problem is solved by downloading the newer 2.4.9.0 version of Bass .Net (The previous version with the wrong version number had this problem).
When you save a WaveForm to disk using the function :
... waveForm.FileName = "C:\\Test_File.MP3"; waveForm.WaveFormSaveToFile("C:\\TEST.WF", true);
And load the WaveForm back using the function :
... waveForm.WaveFormLoadFromFile("C:\\TEST.WF", true);
the waveForm.FileName field is empty.
When I look in the file C:\TEST.WF I can see the given filename (C:\Test_File.mp3).
Is there something broken? I can recall this used to work, since I stored the original gain information in the filename property.
|
|
|
|
« Last Edit: 8 Jul '12 - 22:33 by HarryHar »
|
Logged
|
|
|
|
|
HarryHar
Posts: 135
|
 |
« Reply #1096 on: 8 Jul '12 - 22:19 » |
Quote
|
I also noticed that when you detect beats and write the waveform to a file, you end up with an empty waveform when you load it back into the waveform.
|
|
|
|
|
Logged
|
|
|
|
|
radio42
Posts: 4030
|
 |
« Reply #1097 on: 9 Jul '12 - 13:24 » |
Quote
|
Yes, that is indeed a bug. I'll fix that with the next release (which is anyhow due to be released soon)! THX for the spot.
|
|
|
|
|
Logged
|
|
|
|
|
ken
Posts: 630
|
 |
« Reply #1098 on: 27 Jul '12 - 18:03 » |
Quote
|
Hi Bernd,
I just tested BASS.NET with Windows 8 (Metro style app). I can't add BASS.NET as a reference, get Error about "The project target 'NETCore' while the reference targets '.NET framework'
I manage to add Bass.Net.iPhone and Bass.Net.compact, but BASS_Init throw error that _DLL not fond. If I use v2.0 of BASS.NET the I get errors about Windows Foms when running app.
Visual Studio 2012 RC uses .NET 4.5, that is properly one reason but 'NETCore' that i'm not familiar with yet.
Do you think it's possible to run BASS.NET (and BASS) under Windows 8?
/Ken
|
|
|
|
|
Logged
|
|
|
|
|
|
|