OpenAl and OggVorbis files

Started by
3 comments, last by SuperVince 19 years, 5 months ago
Hi everybody I have a problem with playing ogg files with openal, i can play the sound but when i put it in the game the fps are divide by two. When i played the same files in wave the fps are really better, if somebody can help me it will be good. Thanks
Advertisement
Maybe it's because OGG vorbis files are compressed and WAV files aren't? (Just guessing)
I know thanks. My problem is that playing oggVorbis is too long.
FPS isn't really a good way to measure the efficiency of code changes.

Is it a drop from ~800 to 400, or from 60 to 30?

Use the time it took to render a frame as measurement instead.

800 to 400 drop:
frame time: 0,00125 ms ( 800 fps )
frame time: 0,0025 ms ( 400 fps )
- Difference: 1.25 ms

60 to 30 drop:
frame time: ~0,0166666666666667 ms ( 60 fps )
frame time: ~0,0333333333333333 ms ( 30 fps )
- Difference: 16.66667 ms

Catch my drift?
it's a drop from 60 to 30. Is there another method for playing ogg vorbis sound, because now i create a new thread and I played it. But we need to decompressed the sound before playing and this take time.

This topic is closed to new replies.

Advertisement