iris 3d issue
-
- DCEmu Junior
- Posts: 42
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Thu Feb 06, 2003 3:51 pm
- Has thanked: 0
- Been thanked: 0
iris 3d issue
HI
having problems getting the vorbis sound code and iris3d to work together.
They work independently but together the ogg vorbis seems to be interfering
with the rendering of the graphics. Once the sound stops playing the
graphics continue to render but of course need them working together.
Don't know much about threading but when calling the function to start
the playing of the ogg vorbis file its seems to be creating its own thread
and testing with printf statements indicates that the code continues to
run up until the time to render.
heres what I get on my end my printf statements are indicated by *
before sound *
sndserver: initializing libtremor 1.0 [Tremor 20020902 based]
sndserver: pid is 3
snd_init(): loading 3408 bytes into SPU RAM
oggthread: waiting on semaphore
sndserver: successfully created thread
oggthread: initializing and parsing ogg
before time *
after time *
before beginscene *
oggthread: released from semaphore (status=2)
oggthread: stream_init called
oggthread: stream_start called
so it seems to be getting stuck right about here when ogg sound is playing
c.BeginScene();
samples.Render();
c.EndScene();
I would greatly appreciate if anyone has a solution to this.
having problems getting the vorbis sound code and iris3d to work together.
They work independently but together the ogg vorbis seems to be interfering
with the rendering of the graphics. Once the sound stops playing the
graphics continue to render but of course need them working together.
Don't know much about threading but when calling the function to start
the playing of the ogg vorbis file its seems to be creating its own thread
and testing with printf statements indicates that the code continues to
run up until the time to render.
heres what I get on my end my printf statements are indicated by *
before sound *
sndserver: initializing libtremor 1.0 [Tremor 20020902 based]
sndserver: pid is 3
snd_init(): loading 3408 bytes into SPU RAM
oggthread: waiting on semaphore
sndserver: successfully created thread
oggthread: initializing and parsing ogg
before time *
after time *
before beginscene *
oggthread: released from semaphore (status=2)
oggthread: stream_init called
oggthread: stream_start called
so it seems to be getting stuck right about here when ogg sound is playing
c.BeginScene();
samples.Render();
c.EndScene();
I would greatly appreciate if anyone has a solution to this.
I guess what I'm really asking is there a way to let two things run at the same time...
ex Graphics code
Sound code
My graphics run but if I push left the sound will play and then the graphic will move to its position that the left button was supposed to bring it to in the first place....
It wquld be nice if the music could loop and the graphic could move to its position in left when left is pushed...
There seems to be a conflict
I have been using ogg b/c the wav format only plays like 2 secs for my loop is like 10 secs long
P.S. I posted on boobs iris forum thanks for the link
ex Graphics code
Sound code
My graphics run but if I push left the sound will play and then the graphic will move to its position that the left button was supposed to bring it to in the first place....
It wquld be nice if the music could loop and the graphic could move to its position in left when left is pushed...
There seems to be a conflict
I have been using ogg b/c the wav format only plays like 2 secs for my loop is like 10 secs long
P.S. I posted on boobs iris forum thanks for the link
-
- DC Developer
- Posts: 11
- Joined: Wed Oct 02, 2002 12:56 pm
- Location: Paris, France
- Has thanked: 0
- Been thanked: 0
- Contact:
Hi, to answer question, i've never used ogg with iris. I think it complety useless
to use ogg if you wan't to make a game because it take too much CPU and dc
can play wav sample and cd music.
For the multithreading part, a game console is not a pc, try using
the dc timer it's a lot better.
Bye, olivier.
to use ogg if you wan't to make a game because it take too much CPU and dc
can play wav sample and cd music.
For the multithreading part, a game console is not a pc, try using
the dc timer it's a lot better.
Bye, olivier.
-
- Soul Sold for DCEmu
- Posts: 4865
- Joined: Fri Jul 11, 2003 9:56 pm
- Has thanked: 2 times
- Been thanked: 4 times
You could use the SDL mixer the ogg player is a lot better and easyer to work with. i have used it with kos code and grafix at the same time with out much problem. if you want a sample bit of code i can do i also have for download a complete pack of SDL precompiled bins so that would help.
Dreamcast forever!!!
-
- DCEmu Ultra Poster
- Posts: 1754
- Joined: Wed Jul 17, 2002 11:25 am
- Has thanked: 0
- Been thanked: 0
I thought that the integer-only solution was designed for devices (like handheld) that lacked a FPU. It'd probably be slower on the DC, if quality of the decoding was the same.
If you have twenty monkeys,
banging randomly on typewriters,
they will in twenty minutes produce the complete source code to World of Warcraft.
banging randomly on typewriters,
they will in twenty minutes produce the complete source code to World of Warcraft.