Recent

Author Topic: (Solved)Uos Library Sound Don't Work In Mac os x But in windows yes!  (Read 992 times)

lestroso

  • Full Member
  • ***
  • Posts: 134
    • FaSasoftware
Dear WP,
Dear Friends,

I have finished an application of mine....but i have used the file here included "Load a sound as resource", coded by "WP" in Mac go fine ...but In Windows don't work!

can you please help me???

I have also tryed to load the uos library....but without success...there's a lot of versions...but for me don't working.....

Is there a Universal version that works???? either in mac and windows???linux??

Dear WP if you could modify your version here enclosed is would be great!...Because i need to load in memory all my sounds ,,,and your software in mac works very fine...but don't WORKS  in Windows...i don't hear any soundsin Windows10  but the compile go fine and start the EXE ok!.

There's another little program...in this code included...there's no a "STOP" sound command...is it possible to add it??

I thank you to every body.. thanks a lot again..Lestroso :-[
« Last Edit: September 01, 2019, 05:26:03 pm by lestroso »

wp

  • Hero Member
  • *****
  • Posts: 11923
This project does not contain the resource file with the sounds. Since this post is a follow-up of https://forum.lazarus.freepascal.org/index.php/topic,46454.msg331198.html#msg331198 I am asking: did you follow the steps given there, in particular did you follow step #1? When I copy the resource file created there to the project of the new post (which is the same) the sounds play correctly in Windows.

Or did you add sound files to the resource which the built-in Windows routine sndPlaySound cannot play? IFAIK, it cannot play .mp3 files. wav files are ok.

I cannot help you with the UOS library, I never used it. The download via Online-Package-Manager should be ok.

I modified your demo program to contain a Stop button. It contains now also the resource file because I shortened the sound file so that the overall file size is accepted by the forum software.
« Last Edit: August 30, 2019, 10:37:23 pm by wp »

Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Hello lestroso.

I did answer to your question in uos forum, did you read it?
http://uos.2369694.n4.nabble.com/Uos-Library-Sound-Don-t-Work-In-Mac-os-x-But-in-windows-yes-Can-Help-Me-td652.html

Fre;D

I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

lestroso

  • Full Member
  • ***
  • Posts: 134
    • FaSasoftware
Re: Uos Library Sound Don't Work In Mac os x But in windows yes! Can Help Me?
« Reply #3 on: September 01, 2019, 05:25:16 pm »
Dear WP,

i have downloaded your last software here included  ....and it works very fine!....But yes...i have used the mp3  in mac works ok also ogg!!!
I don't understand in mac works either mp3 and wav...and ogg.

Ok ...i have recompiled the sources sounds .res or resource.res(yours name) in Wav Format....and it works very fine...
Unfortunetly in window...works only with wav...Ok your last software include the stop button..and it works very well....

You helped me so much dear WP....if your library could works for win and mac with Mp3...Please let me know....Thanks again...Lestroso :D :D :D

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: (Solved)Uos Library Sound Don't Work In Mac os x But in windows yes!
« Reply #4 on: September 01, 2019, 07:40:16 pm »
Just to put things right: I am not the author of the TPlaySound component, it is forum user minesadorada

 

TinyPortal © 2005-2018