Skip to content
Snippets Groups Projects
Commit 74a5cb6b authored by rswindell's avatar rswindell
Browse files

Use BEEP() macro instead of xpbeep() function call - this is mapped accordingly

in xpbeep.h.
parent f27cbd7d
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2004 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2006 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public License *
......@@ -181,7 +181,7 @@ void playnote(int notenum, int notelen, int dotted)
}
duration-=pauselen;
if(notenum < 72 && notenum >= 0)
xpbeep(((double)note_frequency[notenum])/1000,duration);
BEEP(((double)note_frequency[notenum])/1000,duration);
else
SLEEP(duration);
SLEEP(pauselen);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment