General Category > LisaList2

Newbie: simple Pascal program doesn't work in LisaEm

(1/4) > >>

kewatsdop:
Hi all,

I'm new here so please don't be mad at me if this question has an obvious answer. I search the forum and Google and could not find anything obvious...

I input a very simple Pascal program "beep.text" in LisaEm, using Workshop 3.0:

PROGRAM sound;
USES HWINT;

BEGIN
    Beep(3000, 5000);
END.

Then I compile it with P command to beep.obj, then link it with L command using beep.obj, iospaslib.obj and sys1lib.obj. The object files are linked successfully into an output file bp.obj. Then I run the program with R, and it executes successfully but there's no sound from the beeper.

What am I doing wrong?

Adam

compu_85:
If you go into the Preferences window and change the beeper volume does it make a tone?

kewatsdop:
I don't see beeper volume option (see attached), but LisaEm _does_ make beeper sounds e.g. when boot drive is missing or similar.

rayarachelian:
@compu_85 is talking about the Preferences icon in Lisa Office System (LOS). see: http://toastytech.com/guis/lisaos31prefs.png




(You'd normally need to install both Lisa Pascal Workshop (LPW) + Lisa Office on the same ProFile drive and then use the Environments window to switch between them, though it's possible to just install LPW by itself.)
see: https://lisafaq.sunder.net/single.html#lisafaq-sw_os_environments

However, first things first, do you hear sound effects such as clicks when the Lisa turns on/off and the floppy is accessed? So looks like you've replied that you do, so that's good.
Next, I'd say try changing the pitch value to some other value, and extend the delay, and see if that helps.

I'd also see if there's some Setvolume() function you can access from your code and try to set that, I guess to 5 or 7 or whatever the max is.

As an aside/reference for other sound issues with LisaEm:

(I know from your screenshot that you're using MacOS so the following doesn't apply to you, this section is for future reference for others who might be searching LisaList2 for sound issues.)
There is an issue on GTK (Linux, FreeBSD, etc.) with wxWidgets where, wxWidgets needs to be compiled with LibSDL in order for sound to work. see: https://docs.wxwidgets.org/trunk/classwx_sound.html
"Currently this class is implemented on Windows and Unix and can use either Open Sound System (OSS) or Simple DirectMedia Layer (SDL) under the latter. Notice that OSS is not provided any more by most, and maybe even all, Linux systems in 2017 and osspd (OSS Proxy Daemon) package typically needs to be installed to make it work."

So if you're on Linux/FreeBSD, you'll likely need the  pulseaudio/ALSA proxy package bridges installed as well. I know, it's a mess.
All that said, I've seen sounds fail on Windows and MacOS as well.

But generally if you can hear the sound effects in LisaEm, clicks, floppy, etc., and you've said you did in this thread, you should hear the beeps from the Lisa Boot ROM and LOS/LPW as well.

compu_85:
You can access the preferences window within the workshop too - I believe it's under the System heading.

Navigation

[0] Message Index

[#] Next page

Go to full version