Writing Ogg to console


#1

Hi all,
Hope you all are doing well.

Last time I have posted one question related to writing WAV format to standered out. I got satisfactory answer and I tried the suggested way. Thanks for the same. :smiley:
Now I want to try the Ogg format output to be written on the standered output. I tried the way I did WAV but I am always getting following error:
jucelib_static_Win32_debug.lib(juce_OggVorbisAudioFormat.obj) : error LNK2005: _bitreverse already defined

The way I am doing is:
I have defined another class TempOggWriter, which is copy of the OggWriter, I have just replaced the “ouptut” which is OutputStream with stdout file handler and using fwrite() to write the data to standered out.

Please help me in this too…

Thanks and Regards,
Santo.


#2

Maybe you’re linking to other libraries that use that symbol.

Perhaps try the amalgamated version?

And surely the sensible way to do what you want would be to write yourself a simple OutputStream class that writes to stdout (probably only about 20 lines of code), and pass that to the normal ogg writer??


#3

Hi Jules,

Yes i tried this one in my Application the way you told and yes it is working well.

K.


#4

Hello Jules,

Thanks for your reply!

I found that the error was due to the non-required lib I was using in my application.
I will try the suggested way and let you know!

Thanks,
Santo