Menu

#5 Sound output.

open
nobody
5
2018-03-26
2018-01-28
Giorgos
No

Hi! :-)

I was looking at the documentation (for Bwbasic-3), but I couldn't find any command for producing sound output (BEEP, SOUND, PLAY etc).

It would be nice, to make some noise! :-)
(And sometimes, useful for getting user's attention, if the console is hidden).

Discussion

  • AF5NE

    AF5NE - 2018-03-26

    Giorgos,

    I apologize for the delay in my response. I've been offline for some months.

    The only generic solution that would likely work on most platforms is the ASCII BELL character.
    This can be done in Bywater BASIC using something like this:

    100 PRINT CHR$(7);

    Other than that, as far as I know, sound output requires a particular C compiler or library.
    I am currently building Bywater BASIC 3.30 using the freeware DOS compiler:
    Turbo C Version 2.01
    Copyright (c) 1987, 1988 Borland International
    Adding sound using this specific compiler is something I'm willing to do.
    Sound wouldn't be supported on any other compilers and/or platforms.
    Let me know whether (or not) this would work for you.

     
  • Giorgos

    Giorgos - 2018-03-26

    Oh, I didn't recall the Bell control character! :-)
    Indeed it works.
    THANKS Howard!!! :-)

    Also I filled a bug ticket, because I couldn't compile bwBASIC.
    I thought, that bug tracker was more appropriate, than posting the log here.
    Bye! :-)

     

    Last edit: Giorgos 2018-03-26

Log in to post a comment.