Author Topic: BASS for Windows Store/Phone  (Read 39465 times)

theweavr

  • Guest
Re: BASS for Windows Store/Phone
« Reply #150 on: 1 Dec '16 - 12:57 »
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

  • Administrator
  • Posts: 20437
Re: BASS for Windows Store/Phone
« Reply #151 on: 1 Dec '16 - 13:51 »
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

  • Guest
Re: BASS for Windows Store/Phone
« Reply #152 on: 1 Dec '16 - 19:28 »
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

  • Posts: 2
Re: BASS for Windows Store/Phone
« Reply #153 on: 5 Dec '16 - 20:50 »
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

  • Posts: 4576
Re: BASS for Windows Store/Phone
« Reply #154 on: 5 Dec '16 - 20:53 »
I am afraid, there is currently no Universal App Bass/Bass.Net lib available!

ulrobin

  • Posts: 2
Re: BASS for Windows Store/Phone
« Reply #155 on: 5 Dec '16 - 21:04 »
And using an older version from Win8.1 (phone) libraries won't work, too?! :-/

radio42

  • Posts: 4576
Re: BASS for Windows Store/Phone
« Reply #156 on: 5 Dec '16 - 21:47 »
I am afraid a new BASS version would also be needed...

Ian @ un4seen

  • Administrator
  • Posts: 20437
Re: BASS for Windows Store/Phone
« Reply #157 on: 6 Dec '16 - 14:17 »
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

  • Posts: 30
Re: BASS for Windows Store/Phone
« Reply #158 on: 9 Dec '16 - 20:49 »
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

  • Administrator
  • Posts: 20437
Re: BASS for Windows Store/Phone
« Reply #159 on: 12 Dec '16 - 16:40 »
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).

Ian @ un4seen

  • Administrator
  • Posts: 20437
Re: BASS for Windows Store/Phone
« Reply #160 on: 15 Dec '16 - 17:41 »
The Windows Store version of the BASSMIDI 2.4.10 release is now up in the 1st post. Windows Store versions of the BASSDSD and BASS_APE add-ons have also been added.

Ian @ un4seen

  • Administrator
  • Posts: 20437
Re: BASS for Windows Store/Phone
« Reply #161 on: 21 Dec '16 - 17:50 »
A Windows Store version of the BASSWV add-on has now been added to the 1st post.

Ian @ un4seen

  • Administrator
  • Posts: 20437
Re: BASS for Windows Store/Phone
« Reply #162 on: 12 Jan '17 - 14:50 »
A Windows Store version of the BASS_TTA add-on has now been added to the 1st post.

sakya

  • Posts: 11
Re: BASS for Windows Store/Phone
« Reply #163 on: 6 Mar '17 - 12:48 »
I made a test application using BASS to play audio in a background task for Windows Store.
The full source code can be downloaded here:
https://www.sakya.it/wordpress/?p=720

Btw: many thanks for the Store version, it seems to work great! ;)
« Last Edit: 6 Mar '17 - 19:49 by sakya »

Ian @ un4seen

  • Administrator
  • Posts: 20437
Re: BASS for Windows Store/Phone
« Reply #164 on: 31 Mar '17 - 17:27 »
The Windows Store version of the BASSMIDI 2.4.11 release is now up in the 1st post.

cablehead

  • Posts: 315
Re: BASS for Windows Store/Phone
« Reply #165 on: 22 Apr '17 - 13:23 »
Awesome job Sakya!

I've Been looking for a way to turn bass into a "real" IMediaSource to keep MediaPlayer "busy"...so it plays in background for a single process recorder. I'm sure you know there is a new way to have a background player without a background task (single process) (Aniv SDK) for Windows 10.

Anyway you could post a recording version to IMediaSource? Again, awesome code.

*Your code should somehow makes it's way into Bass.Net Winstore.
Bass.Net.CreateIMediaSource(MediaPlayer);
« Last Edit: 22 Apr '17 - 13:47 by cablehead »

sakya

  • Posts: 11
Re: BASS for Windows Store/Phone
« Reply #166 on: 22 Apr '17 - 13:47 »
Anyway you could post a recording version to IMediaSource? Again, awesome code.
Thanks, do you want to record audio from the mic? Or you want to record the audio played from the background player?

cablehead

  • Posts: 315
Re: BASS for Windows Store/Phone
« Reply #167 on: 22 Apr '17 - 13:50 »
What I really want is a loopback recorder (and mic eventually, lol). Which I do have working in background...but I fool MediaPlayer with a silent looping wav...beacause I don't have a real IMediasource.

Ulysses

  • Posts: 3
Re: BASS for Windows Store/Phone
« Reply #168 on: 5 May '17 - 15:35 »
It seems that BassFX for winstore download link is down...

Ian @ un4seen

  • Administrator
  • Posts: 20437
Re: BASS for Windows Store/Phone
« Reply #169 on: 4 Oct '17 - 16:42 »
The WinStore version of the BASSHLS add-on is now included in the 1st post.

BassPassion

  • Posts: 30
Re: BASS for Windows Store/Phone
« Reply #170 on: 4 Oct '17 - 20:50 »
Ian, any progress or updates regarding BassEnc for UWP?

Ian @ un4seen

  • Administrator
  • Posts: 20437
Re: BASS for Windows Store/Phone
« Reply #171 on: 5 Oct '17 - 18:01 »
No, I'm afraid not.

theweavr

  • Guest
Re: BASS for Windows Store/Phone
« Reply #172 on: 12 Oct '17 - 11:04 »
@Ian Any chance for a BASS_AAC plugin for Windows Store?

Ian @ un4seen

  • Administrator
  • Posts: 20437
Re: BASS for Windows Store/Phone
« Reply #173 on: 12 Oct '17 - 16:39 »
AAC/MP4 is already supported by BASS via Media Foundation on Windows Store, so there is no real need for the BASS_AAC add-on there.

cablehead

  • Posts: 315
Re: BASS for Windows Store/Phone
« Reply #174 on: 19 Oct '17 - 16:25 »
Ian,  Anything new and exciting in the Winstore bass update of Oct 4?