![]() |
![]() |
#61 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,574
|
Quote:
![]() Technical explanation (if anyone is interested..) There are WAVEFORMATEX and WAVEFORMATEXTENSIBLE (extension of WAVEFORMATEX) structures that describe the sample format. "Original way": set format type = WAVE_FORMAT_PCM and channels = 1 or 2 (+frequency and other misc data but they aren't important here) 3 or more channels are not allowed in theory (says the spec..) but it does work with some drivers. (NForce2 and KX appears to work) WinUAE 1.3.3 and older used this. "New way": 1 or 2 channels = use old system. 4 channels: use WAVE_FORMAT_EXTENSIBLE which requires speaker position information. Unfortunately there are still some problems.. Many sound drivers don't support plain 4 channel audio (2, 5.1 or 7.1 are the most common "always" supported channel combinations) There is also "ALL" speakers parameter but again not all sound drivers support it either.. (ALL seems to really mean "driver can guess the speaker positions") Currently WinUAE initializes sound in max 3 passes (if 4 channel mode enabled) 1: use WAVE_FORMAT_PCM and 4 channels. Failed? go to pass 2. 2: use WAVE_FORMAT_EXTENSIBLE with "ALL" speaker configuration. Failed? go to pass 3. 3: use WAVE_FORMAT_EXTENSIBLE with "QUAD" (front left, front right, rear left and rear right) speaker configuration. (Only pass 3 works on my PC) I guess there will be pass 4 in future version that creates 5.1 stream with 2 "extra" channels zeroed for best compatibility. I really like it when every driver does things slightly differently.. Last edited by Toni Wilen; 30 December 2006 at 17:41. |
|
![]() |
![]() |
#62 |
HOL-Team
|
Played a bit with beta #9:
4 Channel surround doesn't seem to work, I only get sound on the front channels (Creative Audigy 2 ZS with Creative drivers). Changing from 4 Channel to Stereo or back mutes all audio, but can be restarted if the game that is running also restarts audio (tried with Turrican II sound menu, just select the same track again). Do you need any logs? EDIT: Switching between interpolation modes also mutes audio. |
![]() |
![]() |
#63 | |
RIP Friends
Join Date: Sep 2005
Location: UK
Posts: 2,157
|
Quote:
![]() |
|
![]() |
![]() |
#64 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,574
|
Quote:
Anyway, I will release 1.3.4 officially later today if this is the only problem left ![]() |
|
![]() |
![]() |
#65 |
HOL-Team
|
Here are the log entries while playing around with the options and starting/restarting sound:
Code:
44-671: SOUND: 'Primary Sound Driver'/4/16 bits/48000 Hz/buffer 131072/dist 32768 44-859: SOUND: 10824 = (11520 - 696) 44-859: SOUND: bs=1024 w=81920 max=131072 tof=174762 tuf=233016 13-609 [0 021x007]: SOUND: 11056 = (11520 - 464) 13-609 [0 021x007]: SOUND: bs=1024 w=81920 max=131072 tof=174762 tuf=233016 13-625: SOUND: DirectSound driver freed 13-625: SOUND: 'Primary Sound Driver'/2/16 bits/48000 Hz/buffer 65536/dist 16384 13-656: SOUND: 5636 = (5760 - 124) 13-656: SOUND: bs=512 w=40960 max=65536 tof=87381 tuf=116508 47-046 [0 165x013]: SOUND: 5480 = (5760 - 280) 47-046 [0 165x013]: SOUND: bs=512 w=40960 max=65536 tof=87381 tuf=116508 47-062: SOUND: DirectSound driver freed 47-062: SOUND: 'Primary Sound Driver'/2/16 bits/48000 Hz/buffer 65536/dist 16384 47-093: SOUND: 5468 = (5760 - 292) 47-093: SOUND: bs=512 w=40960 max=65536 tof=87381 tuf=116508 51-046 [174 000x302]: SOUND: underflow (40960 87381) 15-484 [0 189x018]: SOUND: 5460 = (5760 - 300) 15-484 [0 189x018]: SOUND: bs=512 w=40960 max=65536 tof=87381 tuf=116508 15-500: SOUND: DirectSound driver freed 15-500: SOUND: 'Primary Sound Driver'/4/16 bits/48000 Hz/buffer 131072/dist 32768 15-531: SOUND: 11192 = (11520 - 328) 15-531: SOUND: bs=1024 w=81920 max=131072 tof=174762 tuf=233016 58-703: SOUND: 10976 = (11520 - 544) 58-703: SOUND: bs=1024 w=81920 max=131072 tof=174762 tuf=233016 58-781: SOUND: DirectSound driver freed |
![]() |
![]() |
#66 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,574
|
Quote:
|
|
![]() |
![]() |
#67 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,574
|
It is done, thanks for testing and comments.
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
WinUAE 1.4.1 public beta series | Toni Wilen | support.WinUAE | 17 | 18 March 2007 15:45 |
WinUAE 1.4.0 public beta series | Toni Wilen | support.WinUAE | 115 | 07 March 2007 11:43 |
WinUAE public beta #3 and #4 | Toni Wilen | support.WinUAE | 5 | 21 December 2006 19:46 |
WinUAE public beta #2 | Toni Wilen | support.WinUAE | 15 | 06 December 2006 10:39 |
WinUAE public beta #1 | Toni Wilen | support.WinUAE | 24 | 02 December 2006 16:07 |
|
|