trunk/src/emu/sound/l7a1045_l6028_dsp_a.c
| r245566 | r245567 | |
| 73 | 73 | |
| 74 | 74 | Sample data format TBA |
| 75 | 75 | |
| 76 | | TODO: |
| 77 | | - Sample format needs to be double checked; |
| 78 | | - Octave Control/BPM/Pitch, right now XRally Network BGM wants 66150 Hz which is definitely too fast for Terry Bogard speech; |
| 79 | | - Key Off; |
| 80 | | - ADSR (registers 2 & 4?); |
| 81 | | |
| 82 | 76 | ***************************************************************************/ |
| 83 | 77 | |
| 84 | 78 | #include "emu.h" |
| r245566 | r245567 | |
| 116 | 110 | void l7a1045_sound_device::device_start() |
| 117 | 111 | { |
| 118 | 112 | /* Allocate the stream */ |
| 119 | | m_stream = stream_alloc(0, 2, 66150); //clock() / 384); |
| 113 | m_stream = stream_alloc(0, 2, 44100); //clock() / 384); |
| 120 | 114 | |
| 121 | 115 | m_rom = m_region->base(); |
| 122 | 116 | m_rom_size = m_region->bytes(); |
| r245566 | r245567 | |
| 170 | 164 | |
| 171 | 165 | |
| 172 | 166 | data = m_rom[(start + pos) & (m_rom_size-1)]; |
| 173 | | sample = ((INT8)(data & 0xfc)) << (3 - (data & 3)); |
| 167 | sample = (INT8)data; |
| 174 | 168 | frac += step; |
| 175 | 169 | |
| 176 | | outputs[0][j] += ((sample * vptr->l_volume) >> 9); |
| 177 | | outputs[1][j] += ((sample * vptr->r_volume) >> 9); |
| 170 | outputs[0][j] += ((sample * vptr->l_volume) >> 8); |
| 171 | outputs[1][j] += ((sample * vptr->r_volume) >> 8); |
| 178 | 172 | } |
| 179 | 173 | |
| 180 | 174 | vptr->pos = pos; |
| r245566 | r245567 | |
| 328 | 322 | { |
| 329 | 323 | l7a1045_voice *vptr = &m_voice[m_audiochannel]; |
| 330 | 324 | |
| 331 | | #if 0 |
| 325 | #if 1 |
| 332 | 326 | if(vptr->start != 0) |
| 333 | 327 | { |
| 334 | 328 | printf("%08x START\n",vptr->start); |
trunk/src/mess/drivers/hh_hmcs40.c
| r245566 | r245567 | |
| 15 | 15 | *62 HD38750A 1982, Actronics(Hanzawa) Pack'n Maze |
| 16 | 16 | |
| 17 | 17 | *04 HD38800A 1980, Gakken Heiankyo Alien |
| 18 | @25 HD38800A 1981, Coleco Alien Attack |
| 19 | @27 HD38800A 1981, Bandai Packri Monster (DM-21Z) |
| 20 | *51 HD38800A 1981, Actronics(Hanzawa) Twinvader |
| 21 | @70 HD38800A 1982, Coleco Galaxian |
| 22 | |
| 18 | 23 | @23 HD38800B 1982, Tomy Kingman (THF-01II) |
| 19 | 24 | *24 HD38800B 1982, Actronics(Hanzawa) Wanted G-Man |
| 20 | | @25 HD38800A 1981, Coleco Alien Attack |
| 21 | | @27 HD38800A 1981, Bandai Packri Monster (DM-21Z) |
| 22 | 25 | *29 HD38800B 1984, Tomy Portable 6000 Bombman |
| 23 | 26 | *35 HD38800B 1983, Bandai Gundam vs Gelgoog Zaku |
| 24 | 27 | *43 HD38800B 1983, Bandai Dokodemo Dorayaki Doraemon |
| 25 | | *51 HD38800A 1981, Actronics(Hanzawa) Twinvader |
| 26 | | @70 HD38800A 1982, Coleco Galaxian |
| 27 | 28 | |
| 28 | 29 | @13 HD38820A 1981, Entex Galaxian 2 |
| 29 | 30 | @23 HD38820A 1981, Entex Pac Man 2 |
trunk/src/osd/modules/debugger/osx/debugconsole.m
| r245566 | r245567 | |
| 132 | 132 | [window makeFirstResponder:commandField]; |
| 133 | 133 | |
| 134 | 134 | // calculate the optimal size for everything |
| 135 | | NSRect const available = [[NSScreen mainScreen] visibleFrame]; |
| 136 | | NSSize const regCurrent = [regScroll frame].size; |
| 137 | | NSSize const regSize = [NSScrollView frameSizeForContentSize:[regView maximumFrameSize] |
| 138 | | hasHorizontalScroller:YES |
| 139 | | hasVerticalScroller:YES |
| 140 | | borderType:[regScroll borderType]]; |
| 141 | | NSSize const dasmCurrent = [dasmScroll frame].size; |
| 142 | | NSSize const dasmSize = [NSScrollView frameSizeForContentSize:[dasmView maximumFrameSize] |
| 143 | | hasHorizontalScroller:YES |
| 144 | | hasVerticalScroller:YES |
| 145 | | borderType:[dasmScroll borderType]]; |
| 146 | | NSSize const consoleCurrent = [consoleContainer frame].size; |
| 147 | | NSSize consoleSize = [NSScrollView frameSizeForContentSize:[consoleView maximumFrameSize] |
| 148 | | hasHorizontalScroller:YES |
| 149 | | hasVerticalScroller:YES |
| 150 | | borderType:[consoleScroll borderType]]; |
| 151 | | NSRect windowFrame = [window frame]; |
| 152 | | NSSize adjustment; |
| 135 | NSRect available = [[NSScreen mainScreen] visibleFrame]; |
| 136 | NSRect windowFrame = [window frame]; |
| 137 | NSSize regCurrent = [regScroll frame].size; |
| 138 | NSSize regSize = [NSScrollView frameSizeForContentSize:[regView maximumFrameSize] |
| 139 | hasHorizontalScroller:YES |
| 140 | hasVerticalScroller:YES |
| 141 | borderType:[regScroll borderType]]; |
| 142 | NSSize dasmCurrent = [dasmScroll frame].size; |
| 143 | NSSize dasmSize = [NSScrollView frameSizeForContentSize:[dasmView maximumFrameSize] |
| 144 | hasHorizontalScroller:YES |
| 145 | hasVerticalScroller:YES |
| 146 | borderType:[dasmScroll borderType]]; |
| 147 | NSSize consoleCurrent = [consoleContainer frame].size; |
| 148 | NSSize consoleSize = [NSScrollView frameSizeForContentSize:[consoleView maximumFrameSize] |
| 149 | hasHorizontalScroller:YES |
| 150 | hasVerticalScroller:YES |
| 151 | borderType:[consoleScroll borderType]]; |
| 152 | NSSize adjustment; |
| 153 | 153 | |
| 154 | 154 | consoleSize.width += consoleCurrent.width - [consoleScroll frame].size.width; |
| 155 | 155 | consoleSize.height += consoleCurrent.height - [consoleScroll frame].size.height; |
trunk/src/osd/sdl/aueffectutil.m
| r245566 | r245567 | |
| 306 | 306 | |
| 307 | 307 | [self loadEffectUI]; |
| 308 | 308 | if (nil != restoreFrame) |
| 309 | | { |
| 310 | 309 | [window setFrameFromString:restoreFrame]; |
| 311 | | } |
| 312 | | else |
| 313 | | { |
| 314 | | NSRect const available = [[NSScreen mainScreen] visibleFrame]; |
| 315 | | NSRect frame = [window frame]; |
| 316 | | frame.origin.x = (NSWidth(available) - NSWidth(frame)) / 4; |
| 317 | | frame.origin.y = (NSHeight(available) - NSHeight(frame)) * 3 / 4; |
| 318 | | [window setFrame:frame display:YES animate:NO]; |
| 319 | | } |
| 320 | 310 | } |
| 321 | 311 | |
| 322 | 312 | - (BOOL)readFromData:(NSData *)data ofType:(NSString *)type error:(NSError **)error { |
| r245566 | r245567 | |
| 846 | 836 | item = [parent addItemWithTitle:@"Help" action:NULL keyEquivalent:@""]; |
| 847 | 837 | [parent setSubmenu:menu forItem:item]; |
| 848 | 838 | [menu release]; |
| 849 | | [menu setValue:@"NSHelpMenu" forKey:@"name"]; |
| 850 | | if ([NSApp respondsToSelector:@selector(setHelpMenu:)]) |
| 851 | | [NSApp performSelector:@selector(setHelpMenu:) withObject:menu]; |
| 839 | [NSApp setHelpMenu:menu]; |
| 852 | 840 | |
| 853 | 841 | item = [menu addItemWithTitle:[NSString stringWithFormat:@"%@ Help", appName] action:@selector(showHelp:) keyEquivalent:@"?"]; |
| 854 | 842 | } |