Changeset 3580:fcf489c8762c in roaraudio
- Timestamp:
- 02/27/10 21:47:08 (14 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroar/beep.h
r3568 r3580 42 42 #define ROAR_BEEP_MAX_POS 32767 43 43 44 #define ROAR_BEEP_DEFAULT_VOL (ROAR_BEEP_MAX_VOL/4) 45 44 46 #define ROAR_BEEP_TYPE_DEFAULT 0 45 47 #define ROAR_BEEP_TYPE_CBELL 1 -
roard/beep.c
r3578 r3580 97 97 struct roar_buffer * buf; 98 98 int stream; 99 int i; 99 100 100 101 ROAR_DBG("beep_start(client=%i, beep=%p) = ?", client, beep); 101 102 102 103 if ( beep->vol == 0 ) 103 beep->vol = ROAR_BEEP_ MAX_VOL;104 beep->vol = ROAR_BEEP_DEFAULT_VOL; 104 105 105 106 if ( beep->time == 0 ) … … 153 154 s->info.bits = 8; 154 155 156 for (i = 0; i < s->info.channels; i++) { 157 ss->mixer.mixer[i] = beep->vol; 158 ss->mixer.scale = ROAR_BEEP_MAX_VOL; 159 } 160 155 161 if ( streams_set_dir(stream, ROAR_DIR_PLAY, 1) == -1 ) { 156 162 streams_delete(stream);
Note: See TracChangeset
for help on using the changeset viewer.