Getting weird errors using snd_stream_poll

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.
User avatar
showka
DCEmu Freak
DCEmu Freak
Posts: 95
Joined: Fri Nov 23, 2001 12:01 pm
Location: Border Town
Has liked: 0
Been liked: 0
Contact:

Re: Getting weird errors using snd_stream_poll

Post by showka » Wed Jan 15, 2014 11:18 pm

If anyone out there can try to recreate, particularly someone with a toolchain they built themselves either in Cygwin or in a Linux flavor (preferrably Ubuntu) using GCC, I'd greatly appreciate it. The steps to recreate are relatively simple.

1. Download this ogg file and save it to KallistiOS/examples/dreamcast/sound/hello-ogg/romdisk/test.ogg : http://commons.wikimedia.org/wiki/File:Median_test.ogg

2. Build and run the hello-ogg example.

3. Change vorbis.c in the hello-ogg directly so the path to /rd/test.ogg instead points to /pc/$PATH_TO_YOUR_KOS_DIRECTORY/examples/dreamcast/sound/hello-ogg/romdisk/test.ogg (be careful as the /rd path appears in two places, and one just prints to the console, so it's easy to get a false positive).

4. Build and run the hello-ogg example again.

Again, while its totally possible I've screwed something up, at this point I've built three tool chains across two physical machines and this is recreating on all of them.
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5404
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has liked: 1 time
Been liked: 16 times
Contact:

Re: Getting weird errors using snd_stream_poll

Post by BlueCrab » Thu Jan 16, 2014 7:39 pm

According to jae686 in the IRC, he had no troubles with the hello-ogg example. I dunno if he ran through all the steps you outlined, but he asked me to pass that information along.
User avatar
Bouz
DCEmu Junior
DCEmu Junior
Posts: 46
Joined: Mon May 10, 2010 3:42 pm
Location: St. Bauzille de Putois (France)
Has liked: 0
Been liked: 0

Re: Getting weird errors using snd_stream_poll

Post by Bouz » Fri Jan 17, 2014 1:53 pm

Has any one done the test with the 10MBps LAN adapter? It might be the source of the problem...?
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5404
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has liked: 1 time
Been liked: 16 times
Contact:

Re: Getting weird errors using snd_stream_poll

Post by BlueCrab » Fri Jan 17, 2014 2:11 pm

I tested with the Lan adapter previously and it works fine for me with that setup... Other than there being lag from the audio data taking too long to get there, at least. I get no freezes/crashes/etc.
User avatar
showka
DCEmu Freak
DCEmu Freak
Posts: 95
Joined: Fri Nov 23, 2001 12:01 pm
Location: Border Town
Has liked: 0
Been liked: 0
Contact:

Re: Getting weird errors using snd_stream_poll

Post by showka » Sun Jan 19, 2014 3:40 pm

So today I setup NullDC and noticed I couldn't make my program fail the same way.

So I grabbed the vorbis.elf and again, it worked fine. I fished out the cdi2nero.exe from some ancient hard drive and burned it, and whaddya know, it works.

Previously when I'd tried this, I had started with the dcload-ip disc and switched to a different disc. KOS printed a debug message saying discs were switched, which keeps me a bit suspicious that too much latency is the root cause of all this.

Of course I tried using dc-tool again right away to see if I'd screwed anything up, but got the issue.

I'm uncertain how to proceed. I've tried this on both of my Dreamcasts. I've also built a fresh dcload-ip disc as well as dc-tool.

Does it sound like the problem could really be with the BBA? I'll try a different one if I have to since nothing else seems to work, but of course I'd rather not buy a second one.
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5404
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has liked: 1 time
Been liked: 16 times
Contact:

Re: Getting weird errors using snd_stream_poll

Post by BlueCrab » Sun Jan 19, 2014 8:30 pm

I really doubt your problem is with the BBA you're using. That just would not make any sense.
Post Reply