Recent

Author Topic: XiXMusicPlayer on Sourceforge  (Read 14124 times)

CM630

  • Hero Member
  • *****
  • Posts: 1313
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: XiXMusicPlayer on Sourceforge
« Reply #15 on: June 05, 2015, 09:49:48 pm »
 To fix the bug from item 1 from my previous post, you can change:
Quote
procedure TForm1.PlayFromFile(asong: string);

var artist, title, album, song: string;
begin
 song:= UTF8ToSys(asong);
to
Quote
procedure TForm1.PlayFromFile(asong: string);
var artist, title, album, song: string;
begin
 song:= UTF8ToSys(asong);


You could use 'LConvEncoding' to make a custom conversion. For example you could put a setting to choose CP for nonunicode ID3 tags, though I believe people won't need it, since it should already be done in the OS settings.

2. To fix the bug from item 3 you could make the changes, indicated with red:

Quote
function TID3v2.ConvertID3(const id3tag: string; FrSize: integer): string;
var mode: byte;
    id3tag2, temp2: string;
    i: integer;
begin
  if length(id3tag)>1 then
  begin
  mode:=byte(id3tag[1]);
  case mode of
   0: begin
        temp2:='';
        id3tag2:=trim(copy(id3tag,2,length(id3tag)));
        for i:=1 to length(id3tag2) do
        begin
         {case id3tag2 of
          #214: temp2:=temp2+'Ö';
          #216: temp2:=temp2+'Ø';
          #223: temp2:=temp2+'ß';
          #224: temp2:=temp2+'à';
          #225: temp2:=temp2+'á';
          #226: temp2:=temp2+'â';
          #227: temp2:=temp2+'ã';
          #228: temp2:=temp2+'ä';
          #229: temp2:=temp2+'å';
          #230: temp2:=temp2+'æ';
          #231: temp2:=temp2+'ç';
          #232: temp2:=temp2+'è';
          #233: temp2:=temp2+'é';
          #234: temp2:=temp2+'ê';
          #235: temp2:=temp2+'ë';
          #236: temp2:=temp2+'ì';
          #237: temp2:=temp2+'í';
          #238: temp2:=temp2+'î';
          #239: temp2:=temp2+'ï';
          #240: temp2:=temp2+'ð';
          #241: temp2:=temp2+'ñ';
          #242: temp2:=temp2+'ò';
          #243: temp2:=temp2+'ó';
          #244: temp2:=temp2+'ô';
          #245: temp2:=temp2+'õ';
          #246: temp2:=temp2+'ö';
          #248: temp2:=temp2+'ø';
          #249: temp2:=temp2+'ù';
          #250: temp2:=temp2+'ú';
          #251: temp2:=temp2+'û';
          #252: temp2:=temp2+'ü';
          #253: temp2:=temp2+'ý';
          else }temp2:=temp2+id3tag2;
          //end;
        end;
        ConvertId3:=SysToUTF8(temp2);
      end;
   1: begin
        id3tag2:='';
        if (ord(id3tag[2])=255) and (ord(id3tag[3])=254) then i:=4  // BOM found
                                                         else i:=2; // No BOM found
        repeat
          id3tag2:=id3tag2+utf16toutf8(WideChar(Ord(id3tag) or (Ord(id3tag[i+1]) shl 8) ));
          i:=i+2;
        until i>FrSize-1;

        ConvertId3:=trim(id3tag2);
      end;
   2: begin
        id3tag2:='';
        if (ord(id3tag[2])=254) and (ord(id3tag[3])=255) then i:=4  // BOM found
                                                         else i:=2; // No BOM found
        repeat
          id3tag2:=id3tag2+utf16toutf8(WideChar(Ord(id3tag[i+1]) or (Ord(id3tag) shl 8) ));
          i:=i+2;
        until i>FrSize-1;
        ConvertId3:=trim(id3tag2);
      end;
   3: begin
        id3tag2:=copy(id3tag,2,utf8length(id3tag));
        ConvertId3:=trim(id3tag2);
      end;
      else ConvertId3:=trim(id3tag);
    end;
  end
  else ConvertId3:=trim(id3tag);
end;
« Last Edit: June 06, 2015, 08:06:32 am by CM630 »
Лазар 4,0RC2 32 bit (sometimes 64 bit); FPC3,2,2

wujiyan

  • New Member
  • *
  • Posts: 16
Re: XiXMusicPlayer on Sourceforge
« Reply #16 on: June 07, 2015, 01:37:40 am »
First of all, thanks Zittergie for this great application.

I ran in to this issue -
I am running Ubuntu 64 bit. When I try to adjust the volume from the player while the music is playing, it mutes the system volume for some reason.

Zittergie

  • Full Member
  • ***
  • Posts: 114
    • XiX Music Player
Re: XiXMusicPlayer on Sourceforge
« Reply #17 on: June 07, 2015, 10:52:30 am »
CM630 & wujiyan,

thanks for the remarks.

@CM630:  check PM

@wujiyan:  I will check this and try to find out what is happening.

Be the difference that makes a difference

CM630

  • Hero Member
  • *****
  • Posts: 1313
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: XiXMusicPlayer on Sourceforge
« Reply #18 on: June 07, 2015, 11:22:43 am »
1. Thinking about id3, systoutf8, might not do for nonwin OS. If I am not wrong, sys in *nix should be UTF8. So the source charset should be consider from the locale. I will try to check these days.
2. I cannot find you what have you disabled in the project options, but I cannot debug (stop app on a line when execution comes to it).
3. Check out the signal strenght indicator at http://pctrs.network.hu/clubblogpicture/2/3/5/_/235832_737228788_big.JPG (dual arrow).
I do not remember, if when the signal is mono, two arrows are moving simultaneously or only on of them is moving, but I like this kind of indication much more. IMHO, such implememtation should be nicer that the current one which is a single arrow only.
4. Please, tell me if you have received my PM. I pressed something, the browser went somewhere and there is a bug in the Lazarus forum, so I cannot see my sent PMs.
« Last Edit: June 07, 2015, 11:35:45 am by CM630 »
Лазар 4,0RC2 32 bit (sometimes 64 bit); FPC3,2,2

Zittergie

  • Full Member
  • ***
  • Posts: 114
    • XiX Music Player
Re: XiXMusicPlayer on Sourceforge
« Reply #19 on: June 07, 2015, 12:44:37 pm »
@CM630: 4) No, I did not receive a PM :-)
Be the difference that makes a difference

wujiyan

  • New Member
  • *
  • Posts: 16
Re: XiXMusicPlayer on Sourceforge
« Reply #20 on: June 07, 2015, 05:59:54 pm »
@wujiyan:  I will check this and try to find out what is happening.

Zittergie, a quick update, after the system reboot the issue which I mentioned is not happening any more. So it's all good. I am really liking the simple easy to use interface and the Equalizer options.

Any plans to implement a Parametric EQ??

Another intermittent issue  found is  - 
                     Settings -> Local Folders -> Adding a Local folder
sometimes crashes the  application ...

Thanks
« Last Edit: June 07, 2015, 06:01:30 pm by wujiyan »

CM630

  • Hero Member
  • *****
  • Posts: 1313
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: XiXMusicPlayer on Sourceforge
« Reply #21 on: June 07, 2015, 09:40:51 pm »
@Zittergie, please answer item 2?
Edit: It seems sth. is wrong with my Lazarus ?!


And now I am sure I have sent you the PM.


@wujiyan, there is an EQ at the bottom of the app window, just on the left of the FX buttom.
Unless you mean sth. else?
« Last Edit: June 08, 2015, 12:09:57 am by CM630 »
Лазар 4,0RC2 32 bit (sometimes 64 bit); FPC3,2,2

wujiyan

  • New Member
  • *
  • Posts: 16
Re: XiXMusicPlayer on Sourceforge
« Reply #22 on: June 07, 2015, 11:40:02 pm »
@wujiyan, there is an EQ at the bottom of the app window, just on the left of the FX buttom.
Unless you mean sth. else?

Yes , I have seen that. I was talking about parametric EQ which gives better control of the frequencies you would like to adjust like this ..
http://music.tutsplus.com/tutorials/how-to-use-a-parametric-equalizer--audio-2301

Rhythmbox has a plugin for this.

Zittergie

  • Full Member
  • ***
  • Posts: 114
    • XiX Music Player
Re: XiXMusicPlayer on Sourceforge
« Reply #23 on: June 10, 2015, 08:28:43 am »
@CM630:  Don't think I changed something like that, but I just tried on MacOS X and the breakpoints don't work too.

@ wujiyan:  Parametric Equalizer should be possible with BASS with BASS_FX.  But first I want to add remote network control.
Be the difference that makes a difference

jesusr

  • Sr. Member
  • ****
  • Posts: 496
Re: XiXMusicPlayer on Sourceforge
« Reply #24 on: June 11, 2015, 03:23:58 am »
Here, break points work if debug info format is set to Dwarf2

CM630

  • Hero Member
  • *****
  • Posts: 1313
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: XiXMusicPlayer on Sourceforge
« Reply #25 on: June 13, 2015, 12:26:45 am »
I can't build in Ubuntu (error while linking).
Maybe because
Quote
Compile Project, Target: XiXMusicPlayer: Exit code 1, Errors: 1
/usr/bin/ld: warning: link.res {something} -T?
/usr/bin/ld: not found -lbass
/usr/bin/ld: not found -lbass_fx
/usr/bin/ld: not found -lbasscd
XiXMusicPlayer.lpr(48,1) Error: Error while linking

Googling does not help me to find what lbass is?

Лазар 4,0RC2 32 bit (sometimes 64 bit); FPC3,2,2

mica

  • Full Member
  • ***
  • Posts: 196
Re: XiXMusicPlayer on Sourceforge
« Reply #26 on: June 13, 2015, 01:12:36 am »
bass library :

http://www.un4seen.com/

dont know if the are Ubuntu repos with bass

CM630

  • Hero Member
  • *****
  • Posts: 1313
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: XiXMusicPlayer on Sourceforge
« Reply #27 on: June 13, 2015, 03:23:03 pm »
I downloaded the Linux i386 build of XiX MP and extracted the *.so files into the trunk folder. Compilation went fine, but the app won't start.
I run in in the terminal and I got: ./XiXMusicPlayer: error while loading shared libraries: libbass.so: cannot open shared object file: No such file or directory.

So I copied the .so files in /usr/lib. Now the app seems to run.
Лазар 4,0RC2 32 bit (sometimes 64 bit); FPC3,2,2

 

TinyPortal © 2005-2018