[SDL] Audio Ouput with SDl
linux_dr at yahoo.com
Thu Aug 15 08:49:00 PDT 2002
Hmm.... I'm getting a seg fault in calls to fread()
within main()... looks like your ogg-vorbis reader
might not be as solid as you thought... ???
P.S. I did look over the rest of the code, and it did
look ok... (I'm not saying it'll work out of the gate,
just that I didn't see anything obvious wrong)... You
might want to mutex protect the audio_len and
audio_pos variables, but otherwise, it looked ok...
Hope that helps a little,
--- Paul Newton <Paul.Newton at sli-institute.ac.uk>
> I was pointed in the direction of SDL fro audio
> output. I am doing an MSc
> project looking at Ogg Vorbis. I am trying to amend
> one of the example
> files given with the source code, decoder_example.c.
> As supplied it took
> input from stdin and output raw PCM to stdout. I
> have changed the file so
> that it takes input from an ogg file but am unsure
> how to get it to output
> to the soundcard. I have tried using SDL but think
> what I have is a bit of
> a mess. It does compile but doesn't do anything. I
> think that I have
> implemented the SDL calls and the callback function
> I am not a very experienced programmer so could you
> please keep all
> instructions simple. I have attached my code to
> this email if somebody
> could look at it and tell me how to fix it I would
> really appreciate it.
> Thanks in advance,
> Paul Newton
> ATTACHMENT part 2 application/octet-stream
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
More information about the SDL