| 341 | |
| 342 | |
| 343 | int InitSound() { |
| 344 | bits = 8; |
| 345 | |
| 346 | if(!(soundoptions&SO_FORCE8BIT)) |
| 347 | { |
| 348 | //no modern system should have this problem, and we dont use primary buffer |
| 349 | /*if( (!(dscaps.dwFlags&DSCAPS_PRIMARY16BIT) && !(soundoptions&SO_SECONDARY)) || |
| 350 | (!(dscaps.dwFlags&DSCAPS_SECONDARY16BIT) && (soundoptions&SO_SECONDARY))) |
| 351 | FCEUD_PrintError("DirectSound: 16-bit sound is not supported. Forcing 8-bit sound.");*/ |
| 352 | |
| 353 | //if(dscaps.dwFlags&DSCAPS_SECONDARY16BIT) |
| 354 | bits = 16; |
| 355 | //else |
| 356 | // FCEUD_PrintError("DirectSound: 16-bit sound is not supported. Forcing 8-bit sound.") |
| 357 | } |
| 358 | |
| 359 | win_SoundInit(bits); |
| 360 | if(killsound) |
| 361 | TrashSound(); |
| 362 | |
| 363 | FCEUI_Sound(soundrate); |
| 364 | return 1; |
| 365 | } |
| 366 | |
| 367 | |
| 368 | void win_SoundSetScale(int scale) { |
no test coverage detected