IPB

Welcome Guest ( Log In | Register )

3 Pages V  < 1 2 3  
Reply to this topicStart new topic
192Khz Lossless Audio LAN streaming, dshow filters
skamp
post Nov 12 2013, 08:21
Post #51





Group: Developer
Posts: 1430
Joined: 4-May 04
From: France
Member No.: 13875



QUOTE (phofman @ Nov 11 2013, 21:52) *
Of course you can create a device which forces only a single samplerate/bitwidth etc. but there is no need for such setup here.


Indeed, I had dmix in mind and got confused as to what the OP was trying to achieve.

Also, I updated my script to return the actual program that uses the ALSA device, which should return more useful information.


--------------------
See my profile for measurements, tools and recommendations.
Go to the top of the page
+Quote Post
phofman
post Nov 12 2013, 09:45
Post #52





Group: Members
Posts: 300
Joined: 14-February 12
Member No.: 97162



QUOTE (skamp @ Nov 12 2013, 09:21) *
and got confused as to what the OP was trying to achieve.


I have lost that track too :-)
Go to the top of the page
+Quote Post
logicom
post Nov 12 2013, 11:40
Post #53





Group: Members
Posts: 45
Joined: 7-November 08
Member No.: 61929



QUOTE (phofman @ Nov 12 2013, 07:05) *
QUOTE (logicom @ Nov 12 2013, 02:01) *
I completely removed pulseaudio, (I did that before as per suggestion by phofman on real host with xonar D1) and this is where I am. Playout is bad.


What specifically do you call "bad"?

If you want to troubleshoot your setup, there are numerous ways to find out what is going on. Does the soundcard play? If your setup is just copy/paste from those lines I posted, notice sox is sending data at 48kHz 16 bits, therefore your soundcard setup would be correct. It will be what you specify there.

Basically we have not done any troubleshooting yet, that script says your device is taken by some process alsa-sink... which we do not know what is (IMO PA). Absolutely no reason to reinstall linux with some other distribution or even go shopping for a different card.

Virtual environment will not provide you with any more information than you have available (but not explored) now.

JPlay has network operation built-in. Just like jackd or network pulseaudio.


Hi,

Bad = 48Khz output once you expect 192Khz
Once I specify whatever parameters, output is bad.
I play 192Kh wav file with sox or "aply" and output is 48Khz. ( with or without pulseaudio and I hope that this is clear, )

I will come with the results of a test as I said, just be patient please.
I do not have to explain methods, and tools, but what I am saying here is the fact that I am measuring. (you remember that moment when part of the spectrum is missing...)
Jplay is good for the reference, an excellent and easygoing tool.

Thank you!

Go to the top of the page
+Quote Post
phofman
post Nov 12 2013, 11:45
Post #54





Group: Members
Posts: 300
Joined: 14-February 12
Member No.: 97162



QUOTE (logicom @ Nov 12 2013, 12:40) *
Bad = 48Khz output once you expect 192Khz
Once I specify whatever parameters, output is bad.
I play 192Kh wav file with sox or "aply" and output is 48Khz. ( with or without pulseaudio and I hope that this is clear, )


I have never seen that happen on a soundcard supporting 192kHz with playback to raw plughw:X

Please put here output of

CODE
aplay -v -D plughw:YOURCARDNAME_OR_ID your192khz.wav


The verbose (-v) parameter of aplay will tell us exactly what is going on.
Go to the top of the page
+Quote Post
logicom
post Nov 13 2013, 05:05
Post #55





Group: Members
Posts: 45
Joined: 7-November 08
Member No.: 61929



Ok,

here is the thing:

once done on physical host it sounds ok:

CODE
[code]$ aplay -v -D plughw:0,0 192Khz.wav
Playing WAVE '192Khz.wav' : Signed 16 bit Little Endian, Rate 192000 Hz, Stereo
Plug PCM: Hardware PCM card 0 'Xonar D1' device 0 subdevice 0

Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 192000
  exact rate   : 192000 (192000/1)
  msbits       : 16
  buffer_size  : 96000
  period_size  : 24000
  period_time  : 125000
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 24000
  period_event : 0
  start_threshold  : 96000
  stop_threshold   : 96000
  silence_threshold: 0
  silence_size : 0
  boundary     : 1572864000
  appl_ptr     : 0
  hw_ptr       : 0
[/code]

Once done on VM machine, it invokes ensonic drivers even tough that xonar is specified/dedicated to that VM host. (see slave hardware)

CODE
$ aplay -v -D plughw:0,0 192Khz.wav
Playing WAVE '192Khz.wav' : Signed 16 bit Little Endian, Rate 192000 Hz, Stereo
Plug PCM: Rate conversion PCM (48000, sformat=S16_LE)
Converter: libspeex (builtin)
Protocol version: 10002
Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 192000
  exact rate   : 192000 (192000/1)
  msbits       : 16
  buffer_size  : 65536
  period_size  : 16384
  period_time  : 85333
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 16384
  period_event : 0
  start_threshold  : 65536
  stop_threshold   : 65536
  silence_threshold: 0
  silence_size : 0
  boundary     : 1073741824
Slave: Hardware PCM card 0 'Ensoniq AudioPCI' device 0 subdevice 0
Its setup is:
  stream       : PLAYBACK
  access       : MMAP_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 48000
  exact rate   : 48000 (1572864000/32768)
  msbits       : 16
  buffer_size  : 16384
  period_size  : 4096
  period_time  : 85333
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 4096
  period_event : 0
  start_threshold  : 16384
  stop_threshold   : 16384
  silence_threshold: 0
  silence_size : 0
  boundary     : 1073741824
  appl_ptr     : 0
  hw_ptr       : 0


Now trivial answer is obvious, and we don't have to elaborate about it, but lets try to explain and solve the issue here.

Regards.

This post has been edited by logicom: Nov 13 2013, 05:06
Go to the top of the page
+Quote Post
phofman
post Nov 13 2013, 07:12
Post #56





Group: Members
Posts: 300
Joined: 14-February 12
Member No.: 97162



The information that you noticed the problem in VM is quite crucial. VM does not offer you the actual HW, but its emulation. And guys implementing the VM decided the emulated soundcard in this particular type of VM will behave (report itself) as Ensoniq PCI. And this card does not support more than 48kHz, we already talked about that.

Never use virtual machine for testing capabilities of your hardware, you are testing capabilities of the emulation layer.

This post has been edited by phofman: Nov 13 2013, 07:15
Go to the top of the page
+Quote Post
logicom
post Nov 15 2013, 21:45
Post #57





Group: Members
Posts: 45
Joined: 7-November 08
Member No.: 61929



QUOTE (phofman @ Nov 13 2013, 07:12) *
The information that you noticed the problem in VM is quite crucial. VM does not offer you the actual HW, but its emulation. And guys implementing the VM decided the emulated soundcard in this particular type of VM will behave (report itself) as Ensoniq PCI. And this card does not support more than 48kHz, we already talked about that.

Never use virtual machine for testing capabilities of your hardware, you are testing capabilities of the emulation layer.


Except... if there would be USB Device Passthrough Configuration. E-MU 0204 might work. I will try this.
Go to the top of the page
+Quote Post
phofman
post Nov 15 2013, 21:59
Post #58





Group: Members
Posts: 300
Joined: 14-February 12
Member No.: 97162



Just make sure the USB card is properly supported in linux. AFAIR there used to be problems with USB E-MU cards using non-standard communication mode. But it may have been already fixed by now.
Go to the top of the page
+Quote Post
skamp
post Nov 15 2013, 22:12
Post #59





Group: Developer
Posts: 1430
Joined: 4-May 04
From: France
Member No.: 13875



I use the EMU 0204 USB on Linux every day, it works fine.


--------------------
See my profile for measurements, tools and recommendations.
Go to the top of the page
+Quote Post

3 Pages V  < 1 2 3
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th August 2014 - 12:14