Playing multiple audio files.

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
User avatar
lerabot
Insane DCEmu
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

Playing multiple audio files.

Post by lerabot »

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?
User avatar
BlueCrab
The Crabby Overlord
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.

Post by BlueCrab »

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.
User avatar
lerabot
Insane DCEmu
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.

Post by lerabot »

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?
User avatar
BlueCrab
The Crabby Overlord
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.

Post by BlueCrab »

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.
Post Reply