Changeset 3582:c62d68893589 in roaraudio
- Timestamp:
- 02/27/10 22:10:00 (14 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroar/beep.h
r3580 r3582 39 39 #include "libroar.h" 40 40 41 #define ROAR_BEEP_MAX_VOL 65535 42 #define ROAR_BEEP_MAX_POS 32767 41 #define ROAR_BEEP_MAX_VOL 65535 42 #define ROAR_BEEP_MAX_TIME 65535 /* ms */ 43 #define ROAR_BEEP_MAX_FREQ 65535 /* Hz */ 44 #define ROAR_BEEP_MAX_POS 32767 43 45 44 #define ROAR_BEEP_DEFAULT_VOL (ROAR_BEEP_MAX_VOL/4) 46 #define ROAR_BEEP_DEFAULT_VOL (ROAR_BEEP_MAX_VOL/4) 47 #define ROAR_BEEP_DEFAULT_TIME 256 /* ms */ 48 #define ROAR_BEEP_DEFAULT_FREQ 440 /* Hz */ 49 #define ROAR_BEEP_DEFAULT_TYPE ROAR_BEEP_TYPE_DEFAULT 45 50 46 51 #define ROAR_BEEP_TYPE_DEFAULT 0 -
roard/beep.c
r3581 r3582 104 104 105 105 if ( beep->time == 0 ) 106 beep->time = 512; // 512ms106 beep->time = ROAR_BEEP_DEFAULT_TIME; 107 107 108 108 if ( beep->freq == 0 ) 109 beep->freq = 440;109 beep->freq = ROAR_BEEP_DEFAULT_FREQ; 110 110 111 111 if ( beep->type == 0 ) 112 beep->type = ROAR_BEEP_ TYPE_DEFAULT;112 beep->type = ROAR_BEEP_DEFAULT_TYPE; 113 113 114 114 // x, y, z location '0' is allready centered.
Note: See TracChangeset
for help on using the changeset viewer.