Skip Menu |
 

This queue is for tickets about the Win32-Sound CPAN distribution.

Report information
The Basics
Id: 64857
Status: resolved
Priority: 0/
Queue: Win32-Sound

People
Owner: Nobody in particular
Requestors: stefanos [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.49
Fixed in: 0.52



Subject: possible to use multiple soundcards?
Download (untitled) / with headers
text/plain 227b
possible to use multiple soundcards? with the function Win32::Sound::Devices and Win32::Sound::DeviceInfo is avaible my soundcards but how use the soundcard 2 oder 3 with this modul, example? see attachment sound.txt, thanks.
Subject: sound.txt
Download sound.txt
text/plain 2.3k
WAVE_MAPPER: name => Microsoft Soundmapper driver_version => 5.0 manufacturer_id => 1 product_id => 2 support => 12 formats => 1048575 channels => 2 WAVEOUT0: name => Lautsprecher (SB X-Fi Surround driver_version => 0.0 manufacturer_id => 65535 product_id => 65535 support => 44 formats => 1048575 channels => 2 WAVEOUT1: name => Lautsprecher (iMic USB audio sy driver_version => 0.6 manufacturer_id => 65535 product_id => 65535 support => 44 formats => 1048575 channels => 2 WAVEOUT2: name => SPDIF-Out (SB X-Fi Surround 5.1 driver_version => 0.0 manufacturer_id => 65535 product_id => 65535 support => 44 formats => 1048575 channels => 2 WAVEIN0: name => Mikrofon (iMic USB audio system driver_version => 0.6 manufacturer_id => 65535 product_id => 65535 formats => 1048575 channels => 2 WAVEIN1: name => Was Sie hören (SB X-Fi Surround driver_version => 0.0 manufacturer_id => 65535 product_id => 65535 formats => 1048575 channels => 2 WAVEIN2: name => Eingang/Mikro (SB X-Fi Surround driver_version => 0.0 manufacturer_id => 65535 product_id => 65535 formats => 1048575 channels => 2 MIDI_MAPPER: name => Microsoft MIDI Mapper driver_version => 5.0 manufacturer_id => 1 product_id => 1 support => 9 voices => 0 channels => 65535 notes => 0 technology => 5 MIDIOUT0: name => Microsoft GS Wavetable Synth driver_version => 1.0 manufacturer_id => 1 product_id => 27 support => 1 voices => 32 channels => 65535 notes => 32 technology => 7 MIXER0: name => Lautsprecher (SB X-Fi Surround driver_version => 0.0 manufacturer_id => 65535 product_id => 65535 voices => 0 destinations => 1 MIXER1: name => Lautsprecher (iMic USB audio sy driver_version => 0.6 manufacturer_id => 65535 product_id => 65535 voices => 0 destinations => 1 MIXER2: name => SPDIF-Out (SB X-Fi Surround 5.1 driver_version => 0.0 manufacturer_id => 65535 product_id => 65535 voices => 0 destinations => 1 MIXER3: name => Mikrofon (iMic USB audio system driver_version => 0.6 manufacturer_id => 65535 product_id => 65535 voices => 0 destinations => 1 MIXER4: name => Was Sie hören (SB X-Fi Surround driver_version => 0.0 manufacturer_id => 65535 product_id => 65535 voices => 0 destinations => 1
Subject: RE: [rt.cpan.org #64857] possible to use multiple soundcards?
Date: Mon, 17 Jan 2011 18:50:59 -0800
To: <bug-Win32-Sound [...] rt.cpan.org>
From: "Jan Dubois" <jand [...] activestate.com>
Download (untitled) / with headers
text/plain 840b
On Mon, 17 Jan 2011, Stefan Gipper via RT wrote: Show quoted text
> possible to use multiple soundcards? > > with the function Win32::Sound::Devices and Win32::Sound::DeviceInfo is > avaible my soundcards but how use the soundcard 2 oder 3 with this > modul, example?
Sorry, I don't know. I didn't write Win32::Sound; I only keep it up-to-date with new releases of Perl (if necessary). Looking at the docs (and the source), it looks like you can use Win32::Sound::WaveOut to switch output devices by calling CloseDevice() followed by OpenDevice($id), where $id should be the index in your @devices list. Feel free to discuss this some more on the libwin32@perl.org mailing list, instead of in a bug report. And if you get it to work, maybe send some patch to the documentation to make it easier for the next person to figure it out. :) Cheers, -Jan
usage of OpenDevice(ID) has been added to documentation. thanks for reporting.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.