BASS for Universal Windows Platform (UWP)

Started by Ian @ un4seen,

radio42

I'll add that to the Bass.Net version as soon as I return from my vacation, which is at the end of the month.

cablehead

Radio, don't forget a waveWriter and PeakLevel method. Lol.

radio42

As already explained I cannot add those functions, as they use .Net methods which do not exist in the limited windows store version of the CLR.
As such there is currently not way to simply port them.
It might be painful for you but I guess you need to blame Microsoft for its strange way of restrictions with different OS versions and .Net.

Update

Hello Ian,

I downloaded last update Aug.19th but no change in our svn server for win10 files. Did you update them as well?

Thanks, Marek.

Ian @ un4seen

The 19/8 update only added an updated BASS.H file (for the BASS_DEVICE_LOOPBACK definition).

Blink123123

Any updates on the Bass_FX for UWP? it is not included yet in the Bass.Net.

Ian @ un4seen

The WinStore BASS.Net update including support for BASS_FX is now up in the 1st post.

BassPassion

Hi,

are there really no plans for a Windows Store versions of BASSEnc ?
I have a desktop app that I would love to port this to Xamarin and to UWP, this app relies heavily on the BASSEnc functionality.

There are BASSEnc versions for Android, iOS (thus enabling Xamarin versions) and Win32 so I would really, really love to have Windows Store (UWP) versions (x86/x64/Arm).
Please, please with sugar on top ! )))

Ian @ un4seen

A Windows Store version of BASSenc probably will be available eventually, but I'm afraid there are no immediate plans for it. BASSenc is the most platform-specific of the multi-platform add-ons, and the required Windows Store APIs are very different to other platforms, so it'll be quite a big task to port.

theweavr

First of all, thank you so much for porting BASS to Windows Store.

I just wanted to report this issue I was having with background audio. Whenever the app goes into background the audio starts stuttering and jumping. But as soon as the app comes back into foreground the audio becomes smooth. I tested this on emulator (2 GB RAM) and on a friend's phone.

I am using UWP API version 14393.

Once again, thanks a lot!

Ian @ un4seen

It may be that the app isn't getting enough CPU when in the background, resulting in BASS struggling to keep the output refreshed quickly enough. You could try raising the device buffer length and see if that helps. Please see the BASS_CONFIG_DEV_BUFFER documentation for details. The default in the Windows Store version is 30ms, so you could try 40ms, then 50ms, etc. Note that changes need to be made before calling BASS_Init.

theweavr

I think the problem is with some CPU limit being placed on the app.

I used BASS_GetCPU saw these values:
4.27026844024658 on the foreground.
0.651543200016022 on the background.

ulrobin

I'm a quite young developer and I've worked with Bass.Net in VB.net for about two years...

Some weeks ago I decided to code a new project, but this time as UWP-App in Windows 10 to support Microsofts app diversity and having less work for more devices.

To start with UWP-app-development I've read many articles about WASAPI, etc., so - in general - the native audio APIs.


Due to a lack of pitching possibility, I've decided to try Bass.Net in UWP, but this try fails for about 5 days now... :-/

So my question is, if it would be possible to upload (or send by PM) a Visual-Studio-solution with all for Win10 and every platform neccesary files included...


It would be great, if this would be possible, because elsewise I'm getting crazy  ???

radio42

I am afraid, there is currently no Universal App Bass/Bass.Net lib available!

ulrobin

And using an older version from Win8.1 (phone) libraries won't work, too?! :-/

radio42

I am afraid a new BASS version would also be needed...

Ian @ un4seen

Unless I'm misunderstanding the question, it should be possible to use the WinStore BASS version in universal apps? The tricky/fiddly part is setting up the project to use the correct BASS.DLL version for each platform. There are some instructions for doing that here:

   www.un4seen.com/forum/?topic=16665.msg117870#msg117870

BassPassion

Hi Ian,

I am trying to play .ASX streams with the WinStore version, but no luck.
For example: http://www.twr.org.uk/twr/transworld.asx

Calling the StreamCreateUrl with the same flags: BASSFlag.BASS_STREAM_STATUS | BASSFlag.BASS_SAMPLE_FLOAT | BASSFlag.BASS_STREAM_DECODE
returns 0 on WinStore, with LastError being "FileFormat".

Works fine on Win32.

Isn't .ASX supported on the WinStore platform?

Ian @ un4seen

No, I don't think ASX files are currently supported on the Windows Store platform. On regular Windows, support for ASX is added by the BASSWMA add-on. With the advent of Media Foundation codecs (including WMA), the ASX support should probably be moved to BASS itself. I will look into that (on both Windows Store and regular Windows).