Get audio samples sent to a sound cardChanging default audio device in PulseaudioCommand line audio - piping...

What was the first LISP compiler?

Is it appropriate for a professor to require students to sign a non-disclosure agreement before being taught?

RP Automatic Updates

Which ping implementation is cygwin using?

Dividing Divisive Divisors

Does the wording of the Wrathful Smite spell imply that there are other living beings that aren't considered "creatures"?

What does "synoptic" mean in avionics?

Are Democrats more likely to believe Astrology is a science?

Is there any detail about ambulances in Star Wars?

Does the word “uzi” need to be capitalized?

Has any object launched from Earth gone into the Sun?

How do I preserve the line ordering for two "equal" strings while sorting and ignoring the case?

What is going on: C++ std::move on std::shared_ptr increases use_count?

Can a level 1 Fiend Pact warlock cast a scroll of fireball?

"Not enough RAM " error in PIC16F877a

Random point on a sphere

Why would "an mule" be used instead of "a mule"?

What is negative current?

Why should I always enable compiler warnings?

Where does the expression "triple-A" comes from?

Usage of Offrir and Donner

Should I use my toaster oven for slow roasting?

Why would thermal imaging be used to locate the Chandrayaan-2 lander?

How should we understand "unobscured by flying friends" in this context?



Get audio samples sent to a sound card


Changing default audio device in PulseaudioCommand line audio - piping for simultaneous playback and recordingWhy do you need PulseAudio?alsa sound module snd_aloopALSA: send audio to two audio devices8 independants mono channel on 7.1 sound card, but possibility to play sound on 8 channels simultaneouslyDebian Audio Issue






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I need to get the actual audio samples sent to a specific sound card. Currently I'm using a Debian distro with Alsa. My searches failed, perhaps due to wrong keywords.



I don't want to record the audio, I just need the samples in real time accessible from my application (best is C++, but also Python is ok). Steal the output from the target sound card is also acceptable if it's not possible to get samples at the same time they are sent to it.



If you need other information please tell me in the comments.










share|improve this question































    0















    I need to get the actual audio samples sent to a specific sound card. Currently I'm using a Debian distro with Alsa. My searches failed, perhaps due to wrong keywords.



    I don't want to record the audio, I just need the samples in real time accessible from my application (best is C++, but also Python is ok). Steal the output from the target sound card is also acceptable if it's not possible to get samples at the same time they are sent to it.



    If you need other information please tell me in the comments.










    share|improve this question



























      0












      0








      0








      I need to get the actual audio samples sent to a specific sound card. Currently I'm using a Debian distro with Alsa. My searches failed, perhaps due to wrong keywords.



      I don't want to record the audio, I just need the samples in real time accessible from my application (best is C++, but also Python is ok). Steal the output from the target sound card is also acceptable if it's not possible to get samples at the same time they are sent to it.



      If you need other information please tell me in the comments.










      share|improve this question














      I need to get the actual audio samples sent to a specific sound card. Currently I'm using a Debian distro with Alsa. My searches failed, perhaps due to wrong keywords.



      I don't want to record the audio, I just need the samples in real time accessible from my application (best is C++, but also Python is ok). Steal the output from the target sound card is also acceptable if it's not possible to get samples at the same time they are sent to it.



      If you need other information please tell me in the comments.







      debian audio alsa






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      MarkMark

      15513 bronze badges




      15513 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0
















          "Recording" and "accessing the samples in real time" are basically the same thing.



          Debian has Pulseaudio enabled by default, so the simplest way is to record (or "access the samples") from the associated .monitor source of the Pulseaudio sink of your soundcard. This will work out of the box.



          From the Pulseaudio sink, the samples go through ALSA and are then sent to the card, so there's a slight delay. But the samples will be the exact samples sent.



          There are probably other ways to do that, but all of them are a lot more complicated, and some depend on the type of soundcard you have.



          With respect to delay, you should also keep in mind that "accessing the samples" will involve buffering, so there will be a delay, no matter what you do.



          If you have more specific requirements, please explain your use case in more detail.






          share|improve this answer




























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });















            draft saved

            draft discarded
















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f539936%2fget-audio-samples-sent-to-a-sound-card%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0
















            "Recording" and "accessing the samples in real time" are basically the same thing.



            Debian has Pulseaudio enabled by default, so the simplest way is to record (or "access the samples") from the associated .monitor source of the Pulseaudio sink of your soundcard. This will work out of the box.



            From the Pulseaudio sink, the samples go through ALSA and are then sent to the card, so there's a slight delay. But the samples will be the exact samples sent.



            There are probably other ways to do that, but all of them are a lot more complicated, and some depend on the type of soundcard you have.



            With respect to delay, you should also keep in mind that "accessing the samples" will involve buffering, so there will be a delay, no matter what you do.



            If you have more specific requirements, please explain your use case in more detail.






            share|improve this answer






























              0
















              "Recording" and "accessing the samples in real time" are basically the same thing.



              Debian has Pulseaudio enabled by default, so the simplest way is to record (or "access the samples") from the associated .monitor source of the Pulseaudio sink of your soundcard. This will work out of the box.



              From the Pulseaudio sink, the samples go through ALSA and are then sent to the card, so there's a slight delay. But the samples will be the exact samples sent.



              There are probably other ways to do that, but all of them are a lot more complicated, and some depend on the type of soundcard you have.



              With respect to delay, you should also keep in mind that "accessing the samples" will involve buffering, so there will be a delay, no matter what you do.



              If you have more specific requirements, please explain your use case in more detail.






              share|improve this answer




























                0














                0










                0









                "Recording" and "accessing the samples in real time" are basically the same thing.



                Debian has Pulseaudio enabled by default, so the simplest way is to record (or "access the samples") from the associated .monitor source of the Pulseaudio sink of your soundcard. This will work out of the box.



                From the Pulseaudio sink, the samples go through ALSA and are then sent to the card, so there's a slight delay. But the samples will be the exact samples sent.



                There are probably other ways to do that, but all of them are a lot more complicated, and some depend on the type of soundcard you have.



                With respect to delay, you should also keep in mind that "accessing the samples" will involve buffering, so there will be a delay, no matter what you do.



                If you have more specific requirements, please explain your use case in more detail.






                share|improve this answer













                "Recording" and "accessing the samples in real time" are basically the same thing.



                Debian has Pulseaudio enabled by default, so the simplest way is to record (or "access the samples") from the associated .monitor source of the Pulseaudio sink of your soundcard. This will work out of the box.



                From the Pulseaudio sink, the samples go through ALSA and are then sent to the card, so there's a slight delay. But the samples will be the exact samples sent.



                There are probably other ways to do that, but all of them are a lot more complicated, and some depend on the type of soundcard you have.



                With respect to delay, you should also keep in mind that "accessing the samples" will involve buffering, so there will be a delay, no matter what you do.



                If you have more specific requirements, please explain your use case in more detail.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 32 mins ago









                dirktdirkt

                19k3 gold badges15 silver badges39 bronze badges




                19k3 gold badges15 silver badges39 bronze badges


































                    draft saved

                    draft discarded



















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f539936%2fget-audio-samples-sent-to-a-sound-card%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                    Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                    Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...