Audio: Implement RGSS2 ogg looping

With this we now link to libvorbis/ogg directly.
When this is enabled, one can theoretically also
build SDL_sound without ogg support, although I
doubt it makes much of a difference.

Adittionally, count frames instead of samples
for playback offset calculation.
This commit is contained in:
Jonas Kulla 2013-12-02 21:40:05 +01:00
parent 226e860c38
commit 04526987e4
3 changed files with 302 additions and 31 deletions

View file

@ -13,10 +13,19 @@ isEmpty(BINDING) {
CONFIG += $$BINDING
RGSS2 {
DEFINES += RGSS2
}
unix {
CONFIG += link_pkgconfig
PKGCONFIG += QtCore sigc++-2.0 glew pixman-1 zlib \
physfs sdl2 SDL2_image SDL2_ttf SDL_sound openal
physfs sdl2 SDL2_image SDL2_ttf SDL_sound \
openal
RGSS2 {
PKGCONFIG += vorbisfile
}
}
# 'slots' keyword fucks with libsigc++