24 May '13 - 15:12 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: WinRT Version of BASS?  (Read 913 times)
jjohnston
Posts: 36


« on: 4 Jun '12 - 23:34 »
Reply with quoteQuote

Hey Ian,

What are your thoughts on a WinRT version of BASS? I know you've commented that the APIs you're using have been severely limited, but your support for MediaFramework and WASAPI should have given you somewhat of a leg up on the matter. I know I'd be interested in the product, and I'm sure many others will start coming.

Relevant Metro-compatible Win32 framework elements:
http://msdn.microsoft.com/en-us/library/windows/apps/hh452756.aspx
Logged
Ian @ un4seen
Administrator
Posts: 15270


« Reply #1 on: 5 Jun '12 - 16:54 »
Reply with quoteQuote

There isn't a WinRT version of BASS in the works at the moment, but so long as there are viable alternatives to the missing Win32 stuff, I think a WinRT version is likely to appear at some point, perhaps later this year.
Logged
luke
Posts: 19


« Reply #2 on: 3 Aug '12 - 14:22 »
Reply with quoteQuote

I would definitely be interested in a WinRT version of BASS. I am developing a media player application. Right now it is WPF based, but I plan to convert it to Metro and put it up on Win8 market place. I would buy a Bass.NET license for that, but of cause that will work only if Metro/WinRT is supported.

Since there is already support for WASAPI playback, that base is already there for creating a WinRT compliant version. Of cause some stuff must be taken out, such as DX effects.

I am sure that there will be a lot of developers moving to Metro soon. For the first time it will really be easy for independend developers to put up windows applications and earn some realy money, by using the Windows 8 market place. This will also be a chance for you to sell more of your library licenses - once you support it.
Logged
ken
Posts: 630


« Reply #3 on: 3 Aug '12 - 15:14 »
Reply with quoteQuote

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...


Logged
luke
Posts: 19


« Reply #4 on: 3 Aug '12 - 15:29 »
Reply with quoteQuote

BASS library uses some APIs (especially DirectShow) which have been deprecated for Metro apps. Technically you could use them and they would work. But Microsoft will test your app if you want to upload it to the app store. If you are (directly or indirectly) using one of the deprecated APIs, your application will not get the certification.

So, you can use BASS, but you are not allowed to use it.

I think migrating BASS.NET should be quite easy, using "Portably Library" feature of VS2012. Migrating BASS core library to only use the new, approved WinRT APIs will most probably be the bigger task.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines