Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: 192Khz Lossless Audio LAN streaming (Read 35013 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

192Khz Lossless Audio LAN streaming

Reply #50
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.


192Khz Lossless Audio LAN streaming

Reply #52
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!


192Khz Lossless Audio LAN streaming

Reply #53
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: [Select]
aplay -v -D plughw:YOURCARDNAME_OR_ID your192khz.wav


The verbose (-v) parameter of aplay will tell us exactly what is going on.

192Khz Lossless Audio LAN streaming

Reply #54
Ok,

here is the thing:

once done on physical host it sounds ok:

Code: [Select]
[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: [Select]
$ 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.

192Khz Lossless Audio LAN streaming

Reply #55
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.

 

192Khz Lossless Audio LAN streaming

Reply #56
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.

192Khz Lossless Audio LAN streaming

Reply #57
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.

192Khz Lossless Audio LAN streaming

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