ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Unsolved Ubuntu Server - Virtual Sound Card

    IT Discussion
    5
    22
    7.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Deleted74295D
      Deleted74295 Banned @thwr
      last edited by

      @thwr said in Ubuntu Server - Virtual Sound Card:

      Hehe. Is Ubuntu Server 16.04 ok for you?

      Sure, whenever really, no rush.

      1 Reply Last reply Reply Quote 0
      • chrisnbrooksC
        chrisnbrooks @thwr
        last edited by

        @thwr said in Ubuntu Server - Virtual Sound Card:
        ...

        https://ubuntuforums.org/showthread.php?t=2119648

        Good read! Wish I still had my blade in Chicago so I could test this out just for gits and shiggles.
        Maybe finally time to renew that contract ... this time sans hosting clients.

        thwrT 1 Reply Last reply Reply Quote 1
        • thwrT
          thwr @chrisnbrooks
          last edited by

          @chrisnbrooks said in Ubuntu Server - Virtual Sound Card:

          @thwr said in Ubuntu Server - Virtual Sound Card:
          ...

          https://ubuntuforums.org/showthread.php?t=2119648

          Good read! Wish I still had my blade in Chicago so I could test this out just for gits and shiggles.
          Maybe finally time to renew that contract ... this time sans hosting clients.

          Just create a VM with no sound hardware 😉

          chrisnbrooksC 1 Reply Last reply Reply Quote 0
          • chrisnbrooksC
            chrisnbrooks @thwr
            last edited by

            @thwr said in Ubuntu Server - Virtual Sound Card:

            @chrisnbrooks said in Ubuntu Server - Virtual Sound Card:

            @thwr said in Ubuntu Server - Virtual Sound Card:
            ...
            Maybe finally time to renew that contract ... this time sans hosting clients.

            Just create a VM with no sound hardware 😉

            Hah! Nooo... Just take my money!!!

            1 Reply Last reply Reply Quote 1
            • thwrT
              thwr
              last edited by thwr

              Ok, got it. It's actually pretty simple. Tried this in a fresh new Ubuntu 16.04.1 VM on VirtualBox. The VM does not have sound hardware (disabled in VirtualBox).
              I had some problems with the recorded file, there was just white noise. Turned out something went wrong when I tried to record the output using arecord and pipe that to lame to get a MP3. Switched to WAV instead.

              Preparations:

              sudo modprobe snd-aloop
              sudo apt-get install alsa
              

              Check devices:

              tw@ubuntu-snddummy:~$ sudo aplay -l
              **** List of PLAYBACK Hardware Devices ****
              Home directory not accessible: Permission denied
              card 0: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
                Subdevices: 7/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
              card 0: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
                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
              tw@ubuntu-snddummy:~$
              

              Play something

              sudo aplay -D hw:0,0,0 sample.wav
              Playing WAVE 'sample.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
              

              Record (different shell)

              sudo arecord -D hw:0,1,0 -f cd record.wav
              

              PS: Did everything as root to avoid any permission issues.

              Source:
              http://www.alsa-project.org/main/index.php/Matrix:Module-aloop

              1 Reply Last reply Reply Quote 3
              • Deleted74295D
                Deleted74295 Banned
                last edited by

                Nice work, really good find.

                Will remember to try this in the future.

                1 Reply Last reply Reply Quote 1
                • thwrT
                  thwr
                  last edited by

                  Thanks, I was just curious 😉 Please report back if that works for you.

                  1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller
                    last edited by

                    This got way more popular than I had been expecting it to be!

                    thwrT 1 Reply Last reply Reply Quote 0
                    • thwrT
                      thwr @scottalanmiller
                      last edited by

                      @scottalanmiller said in Ubuntu Server - Virtual Sound Card:

                      This got way more popular than I had been expecting it to be!

                      Now we just need to find use-cases for this 😉

                      scottalanmillerS travisdh1T 2 Replies Last reply Reply Quote 2
                      • scottalanmillerS
                        scottalanmiller @thwr
                        last edited by

                        @thwr said in Ubuntu Server - Virtual Sound Card:

                        @scottalanmiller said in Ubuntu Server - Virtual Sound Card:

                        This got way more popular than I had been expecting it to be!

                        Now we just need to find use-cases for this 😉

                        That's the bigger challenge 😉

                        1 Reply Last reply Reply Quote 2
                        • travisdh1T
                          travisdh1 @thwr
                          last edited by

                          @thwr said in Ubuntu Server - Virtual Sound Card:

                          @scottalanmiller said in Ubuntu Server - Virtual Sound Card:

                          This got way more popular than I had been expecting it to be!

                          Now we just need to find use-cases for this 😉

                          Back in the late 90s, a group of ~50 engineers and FEA people would have loved to have that available. We could do 3D remotely, but sound without an audio card, not so much.

                          1 Reply Last reply Reply Quote 1
                          • 1
                          • 2
                          • 2 / 2
                          • First post
                            Last post