i was trying to get trplayer to work with vsound and i get silence.
if i run vsound -f vsound.wav realplay i have to turn up the volume control (from 0) manually each time i start realplay, - then i get output in the vsound.wav file if i use trplayer i get silence as it seems the volume is set to 0 each time. note: There is NO SOUND HARDWARE in this linux box!!
(Volume=0 always appears in .RealNetworks_RealMediaSDK_60 after exiting realplay or trplayer.) There was some discussion about this ages ago on this list, and it does appear from the SDK docs that there is a volume control for the audiooutput in IRMAAudioStream / IRMAVolume::SetVolume() and there is also control for the device volume in IRMAAudioDevice::SetVolume()
I had a go at trying to code a call to SetVolume() in main.cc in trplayer, but i don't know enough about COM / C to get this to work. I have given up for the moment and am looking for another solution, but maybe some wizard out there who knows COM and the real SDK could have a look? I believe it would complete trplayer like i said, i don't code much and this is beyond me and i don't have time to learn COM right now, but if somebody could give me a hand to create an object for IRMAAudioStream so as i can call IRMAvolume::SetVolume(), i could figure it out from there and would be happy to code in, say command line switch for volume, and keys to control volume during playback.
btw, my goal here is to reencode a real stream to mp3 (icecast/shoutcast etc)
thanks Keith./
/
*Matt Campbell wrote on* <mailto:trplayer%40braille.uwo.ca>/ Mon, 22 Apr 2002 14:56:26 -0500/
Considering that you're trying to get TRPlayer and VSound to work together, I think the volume in the sound card's mixer is irrelevant. The only case when volume would make a difference is if RealPlayer adjusts the volume by modifying the actual audio that it outputs rather than adjusting the sound card mixer. Does anyone actually know how RealPlayer controls the volume now? I noticed shortly before I started developing TRPlayer that one of the files RealPlayer always had open was /dev/mixer, but I don't know if this has changed in RealPlayer 8 or later. (I'm running Windows now, which is the reason why there is no development of TRPlayer.)
