[Top][All Lists]
[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
- [Protux-devel] ProjectManager: AudioSources, (continued)
- [Protux-devel] ProjectManager: AudioSources, Remon Sijrier, 2003/09/24
- Re: [Protux-devel] ProjectManager: AudioSources, rsff, 2003/09/24
- Re: [Protux-devel] ProjectManager: AudioSources, Luciano Giordana, 2003/09/24
- Re: [Protux-devel] ProjectManager: AudioSources, Remon Sijrier, 2003/09/25
- Re: [Protux-devel] ProjectManager: AudioSources, rsff, 2003/09/25
- Re: [Protux-devel] ProjectManager: AudioSources, Luciano Giordana, 2003/09/25
- Re: [Protux-devel] ProjectManager: AudioSources, Remon Sijrier, 2003/09/25
- Re: [Protux-devel] ProjectManager: AudioSources, Luciano Giordana, 2003/09/25
- Re: [Protux-devel] ProjectManager: AudioSources, booker, 2003/09/26
- Re: [Protux-devel] ProjectManager: AudioSources, Luciano Giordana, 2003/09/26
- Re: [Protux-devel] ProjectManager: AudioSources,
Luciano Giordana <=
- Re: [Protux-devel] ProjectManager: AudioSources, booker, 2003/09/27
- [Protux-devel] PM layout issues.., Remon Sijrier, 2003/09/29
- Re: [Protux-devel] ProjectManager: AudioSources, Luciano Giordana, 2003/09/25
Re: [Protux-devel] ProjectManager, Luciano Giordana, 2003/09/24
Message not available