BASS for Universal Windows Platform (UWP)

Started by Ian @ un4seen,

Ian @ un4seen

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

A Windows Store version of the BASSWV add-on has now been added to the 1st post.

Ian @ un4seen

A Windows Store version of the BASS_TTA add-on has now been added to the 1st post.

sakya

#163
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! ;)

Ian @ un4seen

The Windows Store version of the BASSMIDI 2.4.11 release is now up in the 1st post.

cablehead

#165
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);

sakya

Quote from: cableheadAnyway 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

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

It seems that BassFX for winstore download link is down...

Ian @ un4seen

The WinStore version of the BASSHLS add-on is now included in the 1st post.

BassPassion

Ian, any progress or updates regarding BassEnc for UWP?

theweavr

@Ian Any chance for a BASS_AAC plugin for Windows Store?

Ian @ un4seen

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

Ian,  Anything new and exciting in the Winstore bass update of Oct 4?

Ian @ un4seen

That depends on whether you're using the BASSHLS add-on :) ... It was updated to the latest version.

Ian @ un4seen

The Windows Store version of the BASS 2.4.13 release is now up in the 1st post.

fxfletch

Hi,

I am just starting a new project that is a Windows Universal App, I have downloaded all the latest stuff to use with the store and am trying a simple test:

if (Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero))
            {
                // create a stream channel from a file
                int stream = Bass.BASS_StreamCreateFile("c:\\test.wav", 0, 0, BASSFlag.BASS_DEFAULT);
                if (stream != 0)
                {
                    // play the stream channel
                    Bass.BASS_ChannelPlay(stream, false);
                }
                else
                {
                    // error creating the stream
                    Debug.WriteLine ("Stream error: {0}", Bass.BASS_ErrorGetCode());
                }
            }

This exceptions on the stream create file method with:
System.Runtime.InteropServices.SEHException: 'External component has thrown an exception.'

Should it work with a Universal app?
Anything stupid I am doing wrong?

Ian

Ian @ un4seen

I don't think it is allowed for Windows Store apps to access the root C:\ folder. I get a Platform::AccessDeniedException when trying that here. Try putting the WAV file in your user "Music" folder (eg. "C:\Users\<username>\Music\") and playing it from there.