Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
5b0b2003
Commit
5b0b2003
authored
20 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Rename SineBeep() to xpbeep()
parent
6a5fef1e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/xpdev/xpbeep.c
+2
-2
2 additions, 2 deletions
src/xpdev/xpbeep.c
src/xpdev/xpbeep.h
+3
-3
3 additions, 3 deletions
src/xpdev/xpbeep.h
with
5 additions
and
5 deletions
src/xpdev/xpbeep.c
+
2
−
2
View file @
5b0b2003
...
...
@@ -130,7 +130,7 @@ void makesine(double freq, unsigned char *wave, int samples)
#ifdef _WIN32
void
SineB
eep
(
double
freq
,
DWORD
duration
)
void
xpb
eep
(
double
freq
,
DWORD
duration
)
{
WAVEFORMATEX
w
;
WAVEHDR
wh
;
...
...
@@ -212,7 +212,7 @@ void DLLCALL unix_beep(int freq, int dur)
#endif
}
void
DLLCALL
SineB
eep
(
double
freq
,
DWORD
duration
)
void
DLLCALL
xpb
eep
(
double
freq
,
DWORD
duration
)
{
#ifdef AFMT_U8
int
dsp
;
...
...
This diff is collapsed.
Click to expand it.
src/xpdev/xpbeep.h
+
3
−
3
View file @
5b0b2003
...
...
@@ -3,14 +3,14 @@
#if defined(_WIN32)
#if 0
#define BEEP(freq,dur)
SineB
eep((double)(freq),(DWORD)(dur))
#define BEEP(freq,dur)
xpb
eep((double)(freq),(DWORD)(dur))
#else
#define BEEP(freq,dur) Beep((DWORD)(freq),(DWORD)(dur))
#endif
#elif defined(__OS2__)
#define BEEP(freq,dur) DosBeep(freq,dur)
#elif defined(__unix__) || defined(__APPLE__)
#define BEEP(freq,dur)
SineB
eep((double)(freq),(DWORD)(dur))
#define BEEP(freq,dur)
xpb
eep((double)(freq),(DWORD)(dur))
#else
#error "Unsupported Target: Need some macros and/or function prototypes here."
#endif
...
...
@@ -18,7 +18,7 @@
#ifdef __cplusplus
extern
"C"
{
#endif
void
SineB
eep
(
double
freq
,
DWORD
duration
);
void
xpb
eep
(
double
freq
,
DWORD
duration
);
#ifdef __unix__
void
unix_beep
(
int
freq
,
int
dur
);
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment