maciej-janeczek / sound-localizer

0 stars 0 forks source link

dźwięk tylko z dwóch głośników #2

Open K-Rogulska opened 6 years ago

K-Rogulska commented 6 years ago

Udało mi się odtworzyć dźwięk, natomiast jest on tylko z pierwszej pary głośników 2.1

0dBFS level = 32768.0 --Csound version 6.10 (double samples) Dec 21 2017 [commit: 2b6f2d970da3d1abf09b70bd027cd401841136b6] libsndfile-1.0.29pre1 STARTING FILE Creating options Creating orchestra closing tag Creating score defining argument BARMODEL_INSTRUMENT``ID as...#1# defining argumentSOUND_3DID as...#$`BARMODEL_INSTRUMENTID# defining argument SOUND_3D``AZIMUTH as...# kAzimuth# defining argumentSOUND_3DELEVATION as...# kElevation# defining argument `SOUND_3DVOLUME as...# kVol# defining argument SOUND_3D``MOD360 as...# kDeg360# defining argumentMULTI_SPEAKER_OUTAZIMUTH as...#kAzimuth# defining argument `MULTI_SPEAKER_OUTELEVATION as...# kElevation# defining argument MULTI_SPEAKER_OUT``MOD360 as...# kDeg360# rtaudio: PortAudio module enabled ... using callback interface graphics suppressed, ascii substituted 0dBFS level = 1.0 orch now loaded audio buffered in 32 sample-frame blocks PortAudio V19.6.0-devel, revision unknown 0: dac0 (Microsoft Sound Mapper - Output [MME]) 1: dac1 (Głośniki (USB Multi-Channel Aud [MME]) 2: dac2 (Głośniki (Conexant SmartAudio H [MME]) 3: dac3 (Wyjście cyfrowe (USB Multi-Chan [MME]) 4: dac4 (Primary Sound Driver [Windows DirectSound]) 5: dac5 (Głośniki (USB Multi-Channel Audio Device) [Windows DirectSou) 6: dac6 (Głośniki (Conexant SmartAudio HD) [Windows DirectSound]) 7: dac7 (Wyjście cyfrowe (USB Multi-Channel Audio Device) [Windows Dir) 8: dac8 (Głośniki (Conexant SmartAudio HD) [Windows WASAPI]) 9: dac9 (Głośniki (USB Multi-Channel Audio Device) [Windows WASAPI]) 10: dac10 (Wyjście cyfrowe (USB Multi-Channel Audio Device) [Windows WAS) 11: dac11 (Speakers (Conexant HD Audio output) [Windows WDM-KS]) 12: dac12 (Headphones (Conexant HD Audio headphone) [Windows WDM-KS]) 13: dac13 (Speakers (USB Multi-Channel Audio Device) [Windows WDM-KS]) 14: dac14 (SPDIF Out (USB Multi-Channel Audio Device) [Windows WDM-KS]) PortAudio: selected output device 'Głośniki (USB Multi-Channel Aud' writing 64 sample blks of 64-bit floats to dac SECTION 1: ['drmapan', 'string'] 0dBFS level = 32768.0 --Csound version 6.10 (double samples) Dec 21 2017 [commit: 2b6f2d970da3d1abf09b70bd027cd401841136b6] libsndfile-1.0.29pre1 STARTING FILE Creating options Creating orchestra closing tag Creating score defining argumentBARMODEL_INSTRUMENTID as...#1# defining argument `SOUND_3DID as...#$BARMODEL_INSTRUMENT``ID# defining argumentSOUND_3DAZIMUTH as...# kAzimuth# defining argument `SOUND_3DELEVATION as...# kElevation# defining argument SOUND_3D``VOLUME as...# kVol# defining argumentSOUND_3DMOD360 as...# kDeg360# defining argument `MULTI_SPEAKER_OUTAZIMUTH as...#kAzimuth# defining argument MULTI_SPEAKER_OUT``ELEVATION as...# kElevation# defining argumentMULTI_SPEAKER_OUT``MOD360 as...# kDeg360# rtaudio: PortAudio module enabled ... using callback interface graphics suppressed, ascii substituted 0dBFS level = 1.0 orch now loaded audio buffered in 32 sample-frame blocks PortAudio V19.6.0-devel, revision unknown 0: dac0 (Microsoft Sound Mapper - Output [MME]) 1: dac1 (Głośniki (USB Multi-Channel Aud [MME]) 2: dac2 (Głośniki (Conexant SmartAudio H [MME]) 3: dac3 (Wyjście cyfrowe (USB Multi-Chan [MME]) 4: dac4 (Primary Sound Driver [Windows DirectSound]) 5: dac5 (Głośniki (USB Multi-Channel Audio Device) [Windows DirectSou) 6: dac6 (Głośniki (Conexant SmartAudio HD) [Windows DirectSound]) 7: dac7 (Wyjście cyfrowe (USB Multi-Channel Audio Device) [Windows Dir) 8: dac8 (Głośniki (Conexant SmartAudio HD) [Windows WASAPI]) 9: dac9 (Głośniki (USB Multi-Channel Audio Device) [Windows WASAPI]) 10: dac10 (Wyjście cyfrowe (USB Multi-Channel Audio Device) [Windows WAS) 11: dac11 (Speakers (Conexant HD Audio output) [Windows WDM-KS]) 12: dac12 (Headphones (Conexant HD Audio headphone) [Windows WDM-KS]) 13: dac13 (Speakers (USB Multi-Channel Audio Device) [Windows WDM-KS]) 14: dac14 (SPDIF Out (USB Multi-Channel Audio Device) [Windows WDM-KS]) PortAudio: selected output device 'Głośniki (USB Multi-Channel Aud' writing 64 sample blks of 64-bit floats to dac SECTION 1: ['drmapan', 'string'] Test started inactive allocs returned to freespace end of score. overall amps: 0.00000 0.00000 overall samples out of range: 0 0 0 errors in performance Elapsed time at end of performance: real: 6.019s, CPU: 6.019s closing device 8092 64 sample blks of 64-bit floats written to dac

Process finished with exit code -1073741819 (0xC0000005)

maciej-janeczek commented 6 years ago

w pliku resources/BarImpact.csd spróbuj zmienić w:

K-Rogulska commented 6 years ago

nie otrzymuję żadych błędów, natomiast dźwięk nadal płynie tylko z dwóch głośników ;<

maciej-janeczek commented 6 years ago

Dodałem poprawki do kodu. Pobierz zaktualizowaną. Procedura testowa nie jest w pełni gotowa ale sam program działa jeśli chodzi o przeprowadzanie testu (powiedzmy, da się klikać i się nie zawiesza) ale wyniki nie są jeszcze nigdzie zapisywane. Nie naniosłem zmian w pliku resources/BarImpact.csd takich jak w mojej wcześniejszej wiadomości, to musisz zrobić u siebie sama.

K-Rogulska commented 6 years ago

Traceback (most recent call last): File "C:/Users/katar/Desktop/sound-localizer-master/sound-localizer-master/test.py", line 4, in s.play_sound("string", 0) AttributeError: 'Synthesizer' object has no attribute 'play_sound'

maciej-janeczek commented 6 years ago

Jak uruchamiasz program? Będąc w głównym folderze projektu włącz wpisując w konsoli "python main.py"

K-Rogulska commented 6 years ago

Test started k rtevent: T 8.904 TT 8.904 M: 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 new alloc for instr 1: file resources\hrtf-44100-left.dat (188416 bytes) loaded into memory file resources\hrtf-44100-right.dat (188416 bytes) loaded into memory Generated was x:-45.0, y:45.0 -- You picked x:45.0, y:45.0 rtevent: T 10.900 TT 10.900 M: 0.04058 0.10580 0.00000 0.00000 0.00000 0.00000 0.04058 0.10580 Generated was x:90.0, y:0.0 -- You picked x:0.0, y:45.0 rtevent: T 12.895 TT 12.895 M: 0.09509 0.04256 0.00000 0.00000 0.00000 0.00000 0.09509 0.04256 Generated was x:90.0, y:-45.0 -- You picked x:0.0, y:0.0 rtevent: T 14.912 TT 14.912 M: 0.09509 0.04256 0.00000 0.00000 0.00000 0.00000 0.09509 0.04256 END ! :)

Wygląda jak by wszystko było ok, z tym że właśnie dźwięk wydobywa się tylko z jeden słuchawki.

maciej-janeczek commented 6 years ago

To chyba pozostaje kwestia kolejności kanałów wyjściowych karty dźwiękowej, sprawdź wszystkie. Od strony oprogramowania wszystko działa ok. Może to problem ze sterownikiem?