Mcop warning: user defined signal handler found for SIG_PIPE, ove rriding

HI,

I wrote a audio application (function, playing an audio wav file) in our application. I am using SDL 1.2 version
library (libSDL) When I invoke the function I wrote, I get a message

mcop warning: user defined signal handler found for SIG_PIPE, overriding.
Unable to resolve pcwks123.miel.mot.com

but, earlier I got the same message with some other tag, not “unable to resolve”. But, this message of SIG_PIPE
is consistently coming, though the sound is being played properly.

Can anybody tell me what could the problem, and solution.

Thanks,
Phani.

I am attaching the source code of function which plays the sound:-----------------------------------------------------------------------------------------------------

ACE_INT32 BGSoundPlayer::playMusic(std::string musicFile)
{
ACE_INT32 playCount;

    mutex_.acquire();

    if(musicFile == "")
    {
       ACE_DEBUG((LM_DEBUG, "%I %N %l Music file is \
            not set\n"));
       mutex_.release();
       return (TSF_FAILURE);
    }

    // Load the wave file into memory
    if(SDL_LoadWAV((const char*)(musicFile.c_str()),
                    &wave.spec, &wave.sound, &wave.soundlen)
                            == NULL)
    {
        ACE_DEBUG((LM_DEBUG, "%I %N %l Unable to load file\n"));
        mutex_.release();
        return (TSF_FAILURE);
    }

    // Initialize the callback for SDL library
    wave.spec.callback = filler;

    // Initialize the filler variables
    if(SDL_OpenAudio(&wave.spec, NULL) < ZERO_VALUE)
    {
        ACE_DEBUG((LM_DEBUG, "%I %N %l Unable to open audio\n"));
        SDL_FreeWAV(wave.sound);
        mutex_.release();
        resetwave();
        return (TSF_FAILURE);
    }

    soundOpen_ = TSF_TRUE;

    // Start play sound
    ACE_DEBUG((LM_DEBUG, "%I %N %l Playing the music\n"));
    SDL_PauseAudio(ZERO_VALUE);

    // Loop till it completes or breaks

    playCount = ZERO_VALUE;

    while((SDL_GetAudioStatus() == SDL_AUDIO_PLAYING) &&
             (VehicleClient::readyToShutdown_ == TSF_FALSE ))
    {
        SDL_Delay(DELAY_VALUE);
        playCount++;
        if(playCount == AUDIO_COUNT)
        {
            break;
        }
    }

    // Cleanup
    SDL_CloseAudio();
    SDL_FreeWAV(wave.sound);
    soundOpen_ = TSF_FALSE;
    resetwave();
    mutex_.release();
    return (TSF_SUCCESS);

}

Thanks,
Phani


Phanibhushan Rao Gandeed,
Motorola India Electronics Limited, Hyderabad, India.

T: +91-40-23308090 [ ] General Business Information
M: +91-98493-84084 [ x] Motorola Internal Use only
Fax: +91-40-23308089 [ ] Motorola Confidential Proprietary

Gandeed Phanibhushan Rao-A18356 wrote:

HI,

I wrote a audio application (function, playing an audio wav file) in our application. I am using SDL 1.2 version
library (libSDL) When I invoke the function I wrote, I get a message

mcop warning: user defined signal handler found for SIG_PIPE, overriding.
Unable to resolve pcwks123.miel.mot.com

but, earlier I got the same message with some other tag, not “unable to resolve”. But, this message of SIG_PIPE
is consistently coming, though the sound is being played properly.

Can anybody tell me what could the problem, and solution.

SDL uses arts (the kde sound daemon) on your machine.
A solution is to switch to another audio driver :
export SDL_AUDIODRIVER=esd
export SDL_AUDIODRIVER=dsp
export SDL_AUDIODRIVER=alsa

Refer to the docs :
http://sdldoc.csn.ul.ie/sdlenvvars.php

Stephane