View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000636 | FSSCP | sound | public | 2005-12-02 18:44 | 2006-06-02 13:05 |
| Reporter | Ransom Arceihn | Assigned To | taylor | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Summary | 0000636: Certain 16-bit PCM WAV files don't work with OpenAL | ||||
| Description | In older builds the SEXP works with no problems, but in recent builds the sound simply doesn't play ingame. The most recent build that it seems to work in is the September 18th CVS build. | ||||
| Tags | No tags attached. | ||||
|
|
Just did a bit more testing, it seems .ogg files still work fine, wav files won't though. |
|
|
Is that about the time that builds starting being OpenAL rather than DirectSound? I haven't had a problem using both ogg and wav music so I'm not sure off-hand what the problem might be. Can you upload one of the wav files that doesn't so I can check and see if something is broken in the loader? |
|
2005-12-04 20:41
|
|
|
|
Well the wav sounds and music work fine normally. It's just with the play-sound-from-file sexp that they don't seem to work. The file I've uploaded is actually from retail FS2, but it won't play if I try to use it with the sexp. |
|
|
This seems to be just a problem with how the OpenAL music code is dealing with certain sound files. crane_2.wav for instance is 16-bit with a 11,025 Hz sample rate. Changing it to 8-bit fixes it, changing it to 22,050 Hz fixes it. I haven't found the cause yet but I assume that it's just something wrong with how the data is getting presented to OpenAL. I'll keep working on it but the short term solution is just to not use 16-bit 11,025 sample rate PCMs with the sexp or as music. |
|
|
still an issue? |
|
|
Yep. And I'm still not sure why. It's obviously a problem with our OpenAL code but I have yet to track it down. I will figure it out though, someday. :) |
|
|
Just changing summary to reflect actual problem. I still don't have an answer for why this is happening, but it's on my list of things to work out next month. |
|
|
Uh, yeah. Not know what I was thinking there, it's 16-bit wavs that don't work. :) |
|
|
May be fixed, give it another try with the next build. |
|
|
My play-sound-from-file sexp test worked perfectly. Everything seems to work off of regular audio streaming too so I guess this properly solved now. If you still have issues then just reopen. Fixered. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2005-12-02 18:44 | Ransom Arceihn | New Issue | |
| 2005-12-04 14:17 | Ransom Arceihn | Note Added: 0003961 | |
| 2005-12-04 18:54 | taylor | Note Added: 0003962 | |
| 2005-12-04 20:41 | Ransom Arceihn | File Added: Crane_2.wav | |
| 2005-12-04 20:42 | Ransom Arceihn | Note Added: 0003964 | |
| 2005-12-04 21:19 | taylor | Status | new => assigned |
| 2005-12-04 21:19 | taylor | Assigned To | => taylor |
| 2006-01-04 00:07 | taylor | Note Added: 0004112 | |
| 2006-04-13 17:08 | phreak | Note Added: 0005326 | |
| 2006-04-13 17:40 | taylor | Note Added: 0005330 | |
| 2006-05-22 18:18 | taylor | Note Added: 0005565 | |
| 2006-05-22 18:18 | taylor | Summary | play-sound-from-file SEXP no longer works => 8-bit PCM WAV files don't work with OpenAL |
| 2006-06-02 06:48 | taylor | Note Added: 0005704 | |
| 2006-06-02 06:48 | taylor | Summary | 8-bit PCM WAV files don't work with OpenAL => Certain 16-bit PCM WAV files don't work with OpenAL |
| 2006-06-02 07:24 | taylor | Note Added: 0005706 | |
| 2006-06-02 13:05 | taylor | Status | assigned => resolved |
| 2006-06-02 13:05 | taylor | Resolution | open => fixed |
| 2006-06-02 13:05 | taylor | Note Added: 0005719 |