BASS for WinCE

Started by Ian @ un4seen,

alex208210

hello, it is possible to collect BASSALAC wince?

Ian @ un4seen

Yes, a WinCE version of the BASSALAC add-on has now been added to the package in the 1st post.

alex208210

Thank you. Addon BASSALAC works correctly.

SiRFatlasV

Hello,

What about musepack? Is it possible?

Ian @ un4seen

A WinCE version of the BASS_MPC add-on has been added to the 1st post. The WinCE version of the BASSMIDI 2.4.11 release is also now up in the 1st post.

alex208210

Hey. Bass_mpc does not work.
For windows 8 it works correctly.

Ian @ un4seen

Please upload the MPC file that you are having the problem with to have a look at here:

   ftp.un4seen.com/incoming/

Ian @ un4seen

Your test MPC file was received. I tried playing it with the pre-compiled PLUGINS.EXE example from the WinCE BASS package, and it played fine. If you try that there, do you get the problem with it? If not, perhaps FreePascal (it looks like that is what you're using?) is doing something to trigger it. I'm not a Pascal/Delphi user myself, but I know it enables floating-point exceptions by default on Windows, and they can be disabled like this:

SetExceptionMask(GetExceptionMask+[exInvalidOp,exZeroDivide]);

Perhaps it's a similar story on Windows CE?

alex208210

Yes i use freepascal. Other plugins, such as flac or alac, do not cause a compiler error.

The test compiled plugins.exe also plays for me. Can you have the opportunity to ask Chris Troesken to adapt C++ the code in pascal for plugins.c from the wince version?

Ian @ un4seen

Please upload your EXE (compiled with FreePascal) to try here:

   ftp.un4seen.com/incoming/

Ian @ un4seen

Your EXE was received. I was able to reproduce the problem with that, and tracked it down to an MPC decoder initialization function in which a floating-point number was being converted to a 32-bit integer but was too big to fit. A BASS_MPC update is up in the 1st post now.

alex208210

Yes, the problem is fixed! Thank you!

Maksim V.

Hi. Library tags.dll crashed on WinCE. On big Windows all is ok.

function GetTrackTags(const stream: HSTREAM; fmt: LPCSTR): WideString;
var
  tags: LPCSTR;
begin
  Result := '';
  if TagsLoad then
  begin
    tags := TAGS_Read(stream, fmt);// <---error
    //code
  end;
end;

Handle stream is exsist. DLL tags.dll is loaded and function TAGS_Read get from GetProcAddressW is ok. Whats wrong?
p.s. TAGS_GetVersion worked without error.

Prototype
T
AGS_Read: function(handle: HSTREAM; const fmt: LPCSTR): LPCSTR; stdcall;
Load
@TAGS_Read := GetProcAddressW(TAGS_Handle, LPWSTR('TAGS_Read'));

Ian @ un4seen

It looks like there is a potential memory alignment issue in the TAGS add-on's ID3v2 tag processing. That won't be a problem on most platforms, but it is on WinCE. I've put an update up in the 1st post. If you still have the problem with that, please upload an affected file to have a look at here:

   ftp.un4seen.com/incoming/

Maksim V.

Thank you, new dll correctly works! I have one question. Why is the bass.dll for WinCE so looong to loading (start my program) on the emulator then real device. You can speed up the boot process? Its problems of emulator or features loading in memory?

Ian @ un4seen

If your program is slow to start on the emulator but not on a real device, then that sounds like an emulator issue. It's the same code running in both cases.

Ian @ un4seen

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

Ian @ un4seen

The Windows CE version of the BASS 2.4.13.8 release is now up in the 1st post.

Maksim V.

Hi! Addon for WMA format will be available?

Ian @ un4seen

No, I'm afraid the BASSWMA add-on is only available for the Win32 platform as only that has the required system libraries.

Ian @ un4seen

The Windows CE version of the BASSOPUS 2.4.1.12 release is up now in the 1st post.

Ian @ un4seen

The Windows CE version of the BASSMIDI 2.4.12 release is up now in the 1st post.

Ian @ un4seen

The Windows CE version of the BASS 2.4.14 release is up now in the 1st post.

Ian @ un4seen

The Windows CE version of the BASS 2.4.15 release is up now in the 1st post.

Ian @ un4seen

The Windows CE versions of the BASSWV 2.4.7 and BASSMIDI 2.4.13 releases are up now in the 1st post.