I'm currently using libogg to play some background music.
I'm toying with the idea of adding audio dialogue but I can't get 2 files to play at once.
I have a feeling this is related to thread or streaming 2 files at once.
I did try to have the dialog in rom and the background music on CD, still no luck.
Any clues?
Playing multiple audio files.
- lerabot
- Insane DCEmu
- Posts: 134
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Sun Nov 01, 2015 8:25 pm
- Has thanked: 2 times
- Been thanked: 19 times
- BlueCrab
- The Crabby Overlord
- Posts: 5658
- Joined: Mon May 27, 2002 11:31 am
- Location: Sailing the Skies of Arcadia
- Has thanked: 9 times
- Been thanked: 69 times
- Contact:
Re: Playing multiple audio files.
None of the quick/easy playback libraries support playing more than one song at a time. This isn't a limitation of the snd_stream stuff itself (or of course of libvorbis/libtremor) , but rather of the simple playback libraries built on top of it all.
- lerabot
- Insane DCEmu
- Posts: 134
- Joined: Sun Nov 01, 2015 8:25 pm
- Has thanked: 2 times
- Been thanked: 19 times
Re: Playing multiple audio files.
Fine, I'll look into the source of the libogg stuff adn try to hack something together.
Do you think the DC can handle multiple ogg stream decoding?
Do you think the DC can handle multiple ogg stream decoding?
- BlueCrab
- The Crabby Overlord
- Posts: 5658
- Joined: Mon May 27, 2002 11:31 am
- Location: Sailing the Skies of Arcadia
- Has thanked: 9 times
- Been thanked: 69 times
- Contact:
Re: Playing multiple audio files.
I can't say as I've never benchmarked it.
That said, you want to be looking at the code to liboggvorbisplay, as that will actually show you how to use libogg and libvorbis to do the decoding.
That said, you want to be looking at the code to liboggvorbisplay, as that will actually show you how to use libogg and libvorbis to do the decoding.