24 May '13 - 10:06 *
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 [2] 3 4 ... 32
21  Developments / BASS / Re: BASS for ARM Linux on: 3 Sep '12 - 19:58
Just did a quick test and I can tell that BASS works fine on Raspberry PI running "Raspbian wheezy". I run C# code using Mono 2.10 with BASS.Net (C# 4.0)

/Ken
ReplyReply Reply with quoteQuote
22  Developments / BASS / Re: WinAmp Output Plug-In? on: 21 Aug '12 - 15:32
Thanks Ian,

I figure it working something like that. Problem is I have to port this to C# and my C++ is not that god ;-(
ReplyReply Reply with quoteQuote
23  Developments / BASS / WinAmp Output Plug-In? on: 19 Aug '12 - 13:35
Hi,

Is there a WinAmp Output Plug-In for BASS? So I can use plugins like this: http://emilles.dyndns.org/software/out_apx.html

ReplyReply Reply with quoteQuote
24  Developments / BASS / Re: WinRT Version of BASS? on: 3 Aug '12 - 15:14
HI,

I have done some testing with Windows 8 and "Metro Styled App" (C# WPF). You can't use BASS.NET since it not use .NETCore, but you can do your own calls to BASS, like this for play a internet stream

[DllImport("bass.dll", CharSet = CharSet.Unicode)]
public static extern bool BASS_Init(int device, int freq, int flags, int win, [MarshalAs(UnmanagedType.AsAny)] object clsid);

[DllImport("bass.dll", CharSet = CharSet.Unicode)]
private static extern int BASS_StreamCreateURL(string url, int offset, int flags, [MarshalAs(UnmanagedType.AsAny)] object prog, int user);

And code for init and play url
BASS_Init(-1, 44100, 0, 0, null);
int _stream = BASS_StreamCreateURL(url, 0, -2147483648, null, 0);
BASS_ChannelPlay(_stream, false);

This works fine, BUT there is a problem that I haven't found a solution for yet. When the app loses focus (is hidden) Windows 8 fades down the audio, when the app has focus (is showed) the audio is faded up again. Similar to a iPhone, and that I don't like...


ReplyReply Reply with quoteQuote
25  Developments / BASS / Re: BASS.NET API 2.4.9.0 on: 2 Aug '12 - 15:10
I guess, that is a general Metro Style behaviour - which might be changed somewhere in the session settings.
Sounds pretty much like the iPhone bahaviour - to avoid, that multiple 'parked' apps are all playing together.

Yes gues that to.  I found interface "IBackgroundTask", added that to my "AudioEngine" class, it worked once in background...  I Think I have to Google some more.

ReplyReply Reply with quoteQuote
26  Developments / BASS / Re: BASS.NET API 2.4.9.0 on: 2 Aug '12 - 14:15
No, the internal (Bass).Net marshaling already handles that for you when dealing with callback delegates (pointers to methods).
So you don't have to pin those yourself.

It is enough/sufficient to keep a local reference to such callback delegate (e.g. within a regular member, as shown in the samples).

It could not be the garbage collector, when the my apps get focus again the playback continues. Windows 8 just fade down then playing audio when app is not showed and fades up the audio when I switch back to my app.  Note this is a "Windows Metro Style App" (C#), I have not tested a "normal" WinForm or WPF app.
ReplyReply Reply with quoteQuote
27  Developments / BASS / Re: BASS_DSHOW Video Library on: 1 Aug '12 - 14:52
Hi Ionut,

Can you tell me how I do this with the installation of this MP4 splitter and how do I then write the code which he plays me a youtube video or generally play mp4 videos

 DeadIsaac

I think you only need install a codec to play MP4,  maybe "K-Lite Codec Pack" (Google it...)

ReplyReply Reply with quoteQuote
28  Developments / BASS / Re: BASS.NET API 2.4.9.0 on: 1 Aug '12 - 08:04
Have you tried using the BASS_UNICODE flag with your BASS_StreamCreateURL call?
Like this:
_stream = BASS_StreamCreateURL(url, 0, -2147483648, null, 0);


Thanks that works. I did some experiment and I can actually use Bass.Net.compact but I must use my own BASS_Init call...

Now the biggest problem with Windows 8 Metro is that when my app loses focus the sound is faded down by the OS, so I can't run it in background.  I haven't fond any docs on this yet.
ReplyReply Reply with quoteQuote
29  Developments / BASS / Re: BASS.NET API 2.4.9.0 on: 30 Jul '12 - 16:37
A Metro style app must use references to another .NETCore or Portable Library binary only...it can NOT reference a full .NET 4.0

Thanks Bernd,

I try to build my own DllImport wrapper. Init returns true, but I get Error 20 on CreateStreamURL. This is how I did, and I need your expert advice...


[DllImport("bass.dll", CharSet = CharSet.Unicode)]
public static extern bool BASS_Init(int device, int freq, int flags, int win, [MarshalAs(UnmanagedType.AsAny)] object clsid);

[DllImport("bass.dll", CharSet = CharSet.Unicode)]
private static extern int BASS_StreamCreateURL(string url, int offset, int flags, [MarshalAs(UnmanagedType.AsAny)] object prog, int user);



   bool _ret = BASS_Init(-1, 44100, 0, 0, null);

    _stream = BASS_StreamCreateURL(url, 0, 0, null, 0);

    int _err = BASS_ErrorGetCode();

    BASS_ChannelPlay(_stream, false);




ReplyReply Reply with quoteQuote
30  Developments / BASS / Re: BASS.NET API 2.4.9.0 on: 27 Jul '12 - 18:03
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
ReplyReply Reply with quoteQuote
31  Developments / BASS / Re: BASS.NET API 2.4.9.0 on: 26 Jun '12 - 18:25
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


ReplyReply Reply with quoteQuote
32  Developments / BASS / Re: BASS.NET API 2.4.9.0 on: 26 Jun '12 - 16:19
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!
ReplyReply Reply with quoteQuote
33  Developments / BASS / Re: RTP Multicast in C# on: 26 Jun '12 - 09:43
Don't use Bass.BASS_ChannelGetData in a loop, this will just cause 100 % CPU (1 Core on Multicore), make your Programs Thread Block, make it slow and waste CPU time.

Just imagine you have a leak in a Tank and to stop the leaking fluid you don't put a Bucket underneath it to catch the Drops, you currently try to move the Backet as fast as possible under the Leak to catch any fluid which flows out of it ...

You should use Callbacks instead of calling Bass.BASS_ChannelGetData in a loop, a Recording Callback for example gets called whenever new data "arrived" from the recording channel (Microphone Input for example). Take a look at the Docs to see how to use (Recording) Callbacks and post back if you have troubles applying it.

Thanks a million, using Recording Callback works great!

/Ken
ReplyReply Reply with quoteQuote
34  Developments / BASS / RTP Multicast in C# on: 25 Jun '12 - 15:31
Hi,

I found this great article, with RTP multicast streamer and player in C#  http://www.codeproject.com/Tips/394890/Play-Record-Repeat-Sound-and-Send-Receive-as-Multi

I tried to use the "data" part and use BASS as sound engine instead of WMM API.

The player works pretty good with just using "Bass.BASS_StreamPutData" on a "Bass.BASS_StreamCreatePush" channel.  But the "streamer" I try to use "Bass.BASS_ChannelGetData" in a while loop, but it seams that I get the data to quick.

Hope any one else would play with this code and come up with something good.

/Ken
ReplyReply Reply with quoteQuote
35  Developments / BASS / Re: BASS.NET API 2.4.9.0 on: 25 Jun '12 - 14:09
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
ReplyReply Reply with quoteQuote
36  Developments / BASS / Re: BASS.NET API 2.4.9.0 on: 24 Jun '12 - 13:34
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!

ReplyReply Reply with quoteQuote
37  Developments / BASS / Re: BASS_DSHOW Video Library on: 12 Apr '12 - 12:02
I wonder if the DeckLink is compatible with BASS_DSHOW.

I want to build a playlist and can not have black spaces between the videos.

Thanks for helping

I think Ionut need to make a special Renderer for DeckLink cards, I have some Intensity Pro but the are not supported. Input from these cards would also be nice.

There is a free API for these cards here: http://www.blackmagic-design.com/support/sdks/
ReplyReply Reply with quoteQuote
38  Developments / BASS / Re: BASS_DSHOW Video Library on: 16 Mar '12 - 20:35
Hi,

I cant get "xVideo_STREAM_LOOP" to work. I assume it will loop my video until I call stop. But it only play once and stop.

I use like this (mix mode)

_chanV1 = xVideo.Functions.xVideo_StreamCreateFile(@"C:\Videos\SD0058.wmv", 0, IntPtr.Zero, xVideo.xVideo_StreamFlags.xVideo_STREAM_MIX | xVideo.xVideo_StreamFlags.xVideo_UNICODE | xVideo.xVideo_StreamFlags.xVideo_STREAM_LOOP | xVideo.xVideo_StreamFlags.xVideo_NOAUDIO_PROC);

xVideo.Functions.xVideo_ChannelPlay(_chanV1);


Any suggerstions?

/Ken
ReplyReply Reply with quoteQuote
39  Developments / BASS / Re: BASS for Android on: 14 Feb '12 - 08:16

An Android build is now up in the 1st post.

Thanks, that was fast!


ReplyReply Reply with quoteQuote
40  Developments / BASS / Re: BASS for Android on: 10 Feb '12 - 20:33
I think Android generally does come with an AAC codec but without any way to use it for plain decoding purposes, ie. no way to give it AAC data and get back PCM data. That ability appears to have been introduced in Android 4.0 though, so "built-in" AAC support may well appear in future. I'll look into putting up an Android version of the BASS_AAC add-on in the meantime.

BASS_AAC would be great. I found the AudioEngine that plays AAC but it's eats CPU...  http://code.google.com/p/aacdecoder-android/
ReplyReply Reply with quoteQuote
Pages: 1 [2] 3 4 ... 32
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines