Hello,
I have 5.1 card :
The card uSB udj6 is the default
aplay -Lnull
Discard all samples (playback) or generate zero samples (capture)
pulse
Playback/recording through the PulseAudio sound server
sysdefault:CARD=UDJ6
UDJ6, USB Audio
Default Audio Device
front:CARD=UDJ6,DEV=0
UDJ6, USB Audio
Front speakers
surround40:CARD=UDJ6,DEV=0
UDJ6, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=UDJ6,DEV=0
UDJ6, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=UDJ6,DEV=0
UDJ6, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=UDJ6,DEV=0
UDJ6, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=UDJ6,DEV=0
UDJ6, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=UDJ6,DEV=0
UDJ6, USB Audio
IEC958 (S/PDIF) Digital Audio Output
sysdefault:CARD=ALSA
bcm2835 ALSA, bcm2835 ALSA
Default Audio Device
aplay -l**** List of PLAYBACK Hardware Devices ****
card 0: UDJ6 [UDJ6], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
speaker-test -Dplug:surround51 -c6 -t wavThe speaker-test block. Why ?
After I test bass speakers assignment with Init function like this :
// check the correct BASS was loaded
if (HIWORD(BASS_GetVersion())!=BASSVERSION) {
Error("An incorrect version of BASS was loaded");
return 0;
}
// initialize default device
if (!BASS_Init(-1,44100,BASS_DEVICE_SPEAKERS,NULL,NULL)) {
Error("Can't initialize device");
return 0;
}
std::cout<<"Device : "<<BASS_GetDevice()<<std::endl;
//count device
int a, count=0;
BASS_DEVICEINFO info;
for (a=0; BASS_GetDeviceInfo(a, &info); a++)
if (info.flags&BASS_DEVICE_ENABLED) // device is enabled
count++; // count it
std::cout<<"Device count : "<<count<<std::endl;
// check how many speakers the device supports
BASS_INFO i;
BASS_GetInfo(&i);
std::cout<<"Number of speakers : "<<i.speakers<<std::endl;
I tested BASS_DEVICE_DMIX (with alsa) and BASS_DEVICE_SPEAKERS
http://www.un4seen.com/doc/#bass/BASS_Init.htmlI detected only 2 speakers and after it can't play wave because I have not detected enought speakers !
Where is the problem ?
Thanks a lot