View Issue Details

IDProjectCategoryView StatusLast Update
0000636FSSCPsoundpublic2006-06-02 13:05
ReporterRansom Arceihn Assigned Totaylor  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0000636: Certain 16-bit PCM WAV files don't work with OpenAL
DescriptionIn 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.
TagsNo tags attached.

Activities

Ransom Arceihn

2005-12-04 14:17

reporter   ~0003961

Just did a bit more testing, it seems .ogg files still work fine, wav files won't though.

taylor

2005-12-04 18:54

administrator   ~0003962

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

 

Crane_2.wav (344,216 bytes)   

Ransom Arceihn

2005-12-04 20:42

reporter   ~0003964

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.

taylor

2006-01-04 00:07

administrator   ~0004112

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.

phreak

2006-04-13 17:08

developer   ~0005326

still an issue?

taylor

2006-04-13 17:40

administrator   ~0005330

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. :)

taylor

2006-05-22 18:18

administrator   ~0005565

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.

taylor

2006-06-02 06:48

administrator   ~0005704

Uh, yeah. Not know what I was thinking there, it's 16-bit wavs that don't work. :)

taylor

2006-06-02 07:24

administrator   ~0005706

May be fixed, give it another try with the next build.

taylor

2006-06-02 13:05

administrator   ~0005719

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.

Issue History

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