22 May '13 - 08:43 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 ... 8 9 [10]
181  Developments / BASS / Re: Steamcopy and delay... on: 30 Oct '07 - 16:16
Looks okay so far.
So the delay is due to the DSP implementation, since the StreamCopy DSP first reads the buffer from the original stream (ChannelHandle) and then writes them to the StreamCopy.
So to reduce the latency you might reduce the output buffer (BASS_ChannelSetConfig).

The delay is getting a bit better but not perfect. If the buffer is under 150 itīs getting bad and even the "normal" sound stagnates.


Quote
A better solution will come with BASS 2.4, since here BASS will support PUSH streams - and so the StreamCopy DSP will be changed to leverage this new feature.

So Iīm gonna wait for BASS 2.4. Any idea when the release is??

Quote
However, I don't fully get what is not working (beside the delay)?
Meaning, if you use both PFLs for Player 1 and 2 - are you using two instances of the StreamCopy DSP?

My fault, it works with both channels...  Wink

Quote
The BufferStream DSP works only with decoding streams (and there you don't have any speaker flags, thats why the StreamFlag property is only a getter there.

But yes, you could BASSmix to achieve the same (that's actually what I am doing).
Each mixer channel will then represent the 'physical' output stream.
And your players just deal with decoding channels, which are added to the respective mixer as sources.
In this case you then must use the BufferStream DSP (as this one deals with decoding channels) - and this one will then also have no latency effect (as decoding channels don't have any extra buffers involved).
So your setup will the look like this:

Player1 (decoding) ----> Mixer1 ----> Soundcard (FRONT)
Player2 (decoding) ----> Mixer2 ----> Soundcard (FRONT)
BufferStream         ----> Mixer3 ----> Soundcard (REAR)

When you want to PFL either Player1 or 2 you simply create a BufferStream DSP instead of the StreamCopy and then add the BufferStream to Mixer 3 as a source.

There is only one problem: Iīm not able to insert the BassMix into my code. Is it possible that the BassMix V2.3.0.1 is not supported in BASS.NET 2.3.1.8? I get a MessageBox with: "Incorrect Bass.DLL version (2.3.0.3 is required)"

However, I think I will wait till 2.4 release because if I insert BassMix I have to change nearly everything in my Class...

All in all I say thank you very much, or in good old german Danke für die Hilfe, das könnte ich ja sowieso besser als das englische Zeugs...  Grin

Gruß MB
ReplyReply Reply with quoteQuote
182  Developments / BASS / Re: Steamcopy and delay... on: 30 Oct '07 - 11:07
Hi radio42

Thanks for your reply.

I have to explain my configuration first. I wrote a class called BassControl. There I initalize Bass and all the other things I need. I have 3 players -> 2 independet players to mix my sound for the PA. 1 player for monitoring, for example pre-listening. All players can be switched to different outputs, for example Player1/2 SpeakersFront and Monitor to SpeakersRear. Now I have a button to switch the running Player1 to Monitor. For this I use the DSP_Streamcopy. The problem is now the delay but also another. If I want to switch both running Player1/2 to Monitor it doesnīt work.

Thats the code which I call for Player1-Monitoring:

player1.Monitorload(playerMon.Speaker, playerMon.Device)     // playerMon.Speaker/Device returns the number of the device/speaker
player1.MonitoringStart();

public void Monitorload(int _speaker, int _device)
{
      streamcopy.StreamDevice = _device;
      streamcopy.ChannelHandle = streamFX;
      if (_speaker == 1)
          streamcopy.StreamFlags = BASSStream.BASS_SPEAKER_FRONT;
      if (_speaker == 2)
          streamcopy.StreamFlags = BASSStream.BASS_SPEAKER_REAR;
      if (_speaker == 3)
          streamcopy.StreamFlags = BASSStream.BASS_SPEAKER_CENLFE;
      if (_speaker == 4)
          streamcopy.StreamFlags = BASSStream.BASS_SPEAKER_REAR2;
      if (_speaker < 1 || _speaker > 4)
         return;
}

public void MonitoringStart()
{
    streamcopy.Start();
}


public void MonitorBufferClear()
{
    streamcopy.ClearBuffer();
}

I have thought about BassMix to realize this feature but I donīt know if BassMix is the right thing for that??

Thanks for your answer.

Lg MB
ReplyReply Reply with quoteQuote
183  Developments / BASS / Re: Steamcopy and delay... on: 29 Oct '07 - 20:39
The StreamCopy DSP actually uses an internal buffer - which might cause the delay.
So you might call the "ClearBuffer" method when changing the position etc.

It helped a little bit, but it isnīt perfect. I have a delay for some ms to let me guess 300ms.

Quote
However, a more efficient DSP to clone a channel might be the newer "DSP_BufferStream".
So you might try this one as well.
This DSP was added in a later version of BASS.NET and due to compatibility reasons I didn't remove the StreamCopy DSP.

I have looked at DSP_BufferStream, but there I have problem to say which Speaker I want to take. StreamFlag is only a "getter". Maybe I donīt use it the right way but I have no idea how to initialize for speaker. I need that because Iīm playing a stream on PLAYER1 and with streamcopy i want to copy 1:1 to another MONITORING channel (headphones).

Thanks for your help  Cool Wink

MB


ReplyReply Reply with quoteQuote
184  Developments / BASS / Steamcopy and delay... on: 29 Oct '07 - 17:43
Hi all

Iīve added a streamcopy DSP Effect to my soft and it works great. The sound is correct as long as I donīt change the position. If i change the position or ChannelPause() or even after a Stop() --> Play(), there is a delay of 1-2 sec.

Then I have to resest the streamcopy and it works again. Changing Tempo or Pitch does not cause a delay.

Maybe someone has an idea...

Thanks MB
ReplyReply Reply with quoteQuote
185  Developments / BASS / Re: How to use bass.net.dll on C# 2005 express on: 12 Oct '07 - 22:34
Hi lab82

Donīt get me wrong, but you should learn C# programming first...

If you havenīt got the basic skills it makes no sense...

MB
ReplyReply Reply with quoteQuote
186  Developments / BASS / Re: How to use bass.net.dll on C# 2005 express on: 12 Oct '07 - 12:56
Hi lab82

Install http://www.un4seen.com/filez/4/Bass23.Net20.zip and be happy. There are many examples inside...

MB
ReplyReply Reply with quoteQuote
187  Developments / BASS / Re: Error 41 on mp3 file on: 3 Oct '07 - 08:50
Hi Xire

Where can we downlaod the file?? Maybe Iīm to blind to find, but could you post the Link...

MB
ReplyReply Reply with quoteQuote
188  Developments / BASS / Re: Duration and Elapsed time on: 13 Sep '07 - 23:07
Check out "Utils.FixTimespan(single, string)" in your help. It returns a string in many different formats.

MB
ReplyReply Reply with quoteQuote
189  Developments / BASS / Re: font - panel problem after registration in c# - Bass.NET on: 23 Aug '07 - 20:28
my own Splash Screen doesnīt solve it, so I also donīt know whatīs the difference between yours and mine *gg*. But Ok, the soft is running and thatīs the most important.

Thanks again...

MB
ReplyReply Reply with quoteQuote
190  Developments / BASS / Re: font - panel problem after registration in c# - Bass.NET on: 23 Aug '07 - 19:27
thank you for reply...

...Iīve changed my graphics to

dev.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;

and now it works fine. Could it be, that your splash screen changes the defult settings? But why do I ask, the problem is solved and so i say thank you very much.

MB
ReplyReply Reply with quoteQuote
191  Developments / BASS / font - panel problem after registration in c# - Bass.NET on: 23 Aug '07 - 17:46
Hi all

Iīve written a small DJ-Prog under C#. My Bass.Net wasnīt registered till today. Now I have some Problems as you can see in the following pictures...

So it look like when Bass is registered:




and so without registering:



As you can see there is a font problem. I donīt know why, I only have to remove the Registartion Code and everything works fine. The text is written on a Panel.

Has anybody an idea how to solve this problem?

This is the code for the registration: BassNet.Registration("mxxxxxxxxes@gxx.at", "2X22828xxxxxxx"); I think that should be OK, am i right?

thanks for help

MBB

PS: This is the complete screenshot



ReplyReply Reply with quoteQuote
Pages: 1 ... 8 9 [10]
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines