protux-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Protux-devel] ProjectManager: AudioSources


From: Luciano Giordana
Subject: Re: [Protux-devel] ProjectManager: AudioSources
Date: Fri, 26 Sep 2003 22:12:05 -0300
User-agent: KMail/1.5

Remon, line 1147 on PM

1147            if (MustuxAudioDeviceMapper::open_bus_out(busId, 
inputFile->rate, inputFile->bitDepth, inputFile->channels) < 0)
                        {
                        PERROR("Invalid playback bus");
                        pm->isPlaying = false;
                        }

the last parameters inputFile->channels is wrong. This is not the quantity of 
channels we want, but the channel MODE

in MustuxAudioDeviceMapper.hh you can see

        static const int MONO = 1; // MONO mode
        static const int STEREO = 2; // STEREO mode
        static const int ONLY_LEFT_CHANNEL = 3; // STEREO mode (but uses only 
LEFT)
        static const int ONLY_RIGHT_CHANNEL = 4; // STEREO mode (but uses only 
RIGHT)

so you need to use the appropriate constants.

Also, if the file is mono, and the bus is opened in stereo mode, you must 
manually duplicate the data and send it to the bus.

if you want me to correct it, commit your stuff so I can fix it.

thanks
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]