Hello
> I have a WAVE Component that plays *.Wav file and another component caller
> component that uses WAVE component via service port.
>
> Interface is looks like below.
>
> Interface WavePlayer{
>
> void playWaveFile(string filename);
> }
>
>
> When I start my Caller Comp and WaveComp in 2 different terminals,
> playWaveFile plays in the the terminal where Wave Comp started.
>
> I want payWaveFile to be played in CallerComp's terminal.
You mean you want get .wav file in CallerComp's node?
> In order to do so, I think I need to return a value for playWaveFile. But
> omniORB doesn't have such feature.
>
> Is there any other way, I can do it??????????????????????
If you want to send ".wav" file to player component from caller
component, you can give ".wav" file data as an argument like this.
typedef sequence FileData;
interface WavePlayer
{
void playWaveFile(in FileData data);
};
and call this operations in caller component like this,
FileData data;
data.length( set_length_of_the_wav_file );
for (int i(0); i < length_of_the_wav_file; ++i)
{
data[i] = // copy wav file data
// you can also use memcpy() to copy data, because
// CORBA sequence data area is continuously allocated.
}
wavplayer->playWaveFile(data);
Dear All, I have a WAVE Component that plays *.Wav file and another component caller component that uses WAVE component via service port. Interface is looks like below. Interface WavePlayer{ void playWaveFile(string filename); } When I start my Caller Comp and WaveComp in 2 different terminals, playWaveFile plays in the the terminal where Wave Comp started. I want payWaveFile to be played in CallerComp's terminal. In order to do so, I think I need to return a value for playWaveFile. But omniORB doesn't have such feature. Is there any other way, I can
do it?????????????????????? Please help me. I don't japanese, I am writing in english. Sorry.
Park yourself in front of a world of choices in alternative vehicles.Visit the Yahoo! Auto Green Center.