Ogg Vorbis with DSound
Has anyone succeded in getting this working? I''ve tried using the Vorbis Win32 dev kit, but the sample code doesn''t compile (not a compiler problem, problem with the code itself), and they don''t really explain too well the concept of changing bitstreams. For example, in the sample code they give(the only code for loading data), it looks like this...
long ret=ov_read(&vf,pcmout,sizeof(pcmout),0,2,1,¤t_section);
But what is ¤t_section? It''s not defined in the code anywhere, and I have no clue what ¤ is supposed to mean(this may just be my own stupidity though).
Anyways, if you have no idea what I''m talking about, check out www.vorbis.com and follow your way to the developer documentation section.
Any help is greatly apreciated, as always.
-Doddler
I don''t think I''ve ever seen "¤" typed before, much less in code ![](wink.gif)
Did the board garble it? It that''s the source, and there really is a "¤" in it, I''d be thinking corrupt source files. Or maybe they''re not in ACSII, ehehhe.
Magmai Kai Holmlor
- The disgruntled & disillusioned
![](wink.gif)
Did the board garble it? It that''s the source, and there really is a "¤" in it, I''d be thinking corrupt source files. Or maybe they''re not in ACSII, ehehhe.
Magmai Kai Holmlor
- The disgruntled & disillusioned
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
That symbol is known as a 'currency sign'. Along with many other special characters, it can be displayed on a web page by including a special character code. HTML special character codes begin with an ampersand. It just so happens that the currency sign's code is ¤
The line of code in question should read:
The browser is treating the first part of ¤t_section as a special character code and converting it to a ¤. This can be confirmed by the fact that there is an int current_section; declared at the start of the sample code.
Moot
Edited by - Moot on March 8, 2001 7:14:41 AM
The line of code in question should read:
|
The browser is treating the first part of ¤t_section as a special character code and converting it to a ¤. This can be confirmed by the fact that there is an int current_section; declared at the start of the sample code.
Moot
Edited by - Moot on March 8, 2001 7:14:41 AM
Ok, that you very much. I didn''t know that it would change that. Kind of annoying when you think about it. Anyways, thanks!
-Doddler
-Doddler
I was looking for an MP3 decoder I could decode to a DSound buffer for my game engine, but then I found the licensing crap.
![](sad.gif)
I then found Vorbis. I feel in love
with Vorbis. I got the Vorbis Win32 SDK, it didn''t work too good for me, I then got the CVS though, and that worked great.
The CPU usage is a bit high as it''s a beta, but still great. I got it all nicley wrapped up in my engine.
Sorry for the gloat, but I very proud of getting it all working great just from the CVS. :D
You want any help, let me know on ICQ, and I''ll come back to the thread...too many to keep track of these days![](wink.gif)
Waassaap!!
![](sad.gif)
I then found Vorbis. I feel in love
![](wink.gif)
The CPU usage is a bit high as it''s a beta, but still great. I got it all nicley wrapped up in my engine.
|
Sorry for the gloat, but I very proud of getting it all working great just from the CVS. :D
You want any help, let me know on ICQ, and I''ll come back to the thread...too many to keep track of these days
![](wink.gif)
Waassaap!!
Waassaap!!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement