220 26135 <5751B06A.4080501@mail1.stofanet.dk> article
Path: news.gmane.org!not-for-mail
From: Bjorn Reese <breese@mail1.stofanet.dk>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Any interest to adding audio support to the std library?
Date: Fri, 3 Jun 2016 18:29:30 +0200
Lines: 18
Approved: news@gmane.org
Message-ID: <5751B06A.4080501@mail1.stofanet.dk>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
X-Trace: ger.gmane.org 1464971219 2087 80.91.229.3 (3 Jun 2016 16:26:59 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 3 Jun 2016 16:26:59 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCRLNYMEK4ILFX6GXICRUBCLXAROO@isocpp.org Fri Jun 03 18:26:50 2016
Return-path: <std-proposals+bncBCRLNYMEK4ILFX6GXICRUBCLXAROO@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm0-f69.google.com ([74.125.82.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCRLNYMEK4ILFX6GXICRUBCLXAROO@isocpp.org>)
	id 1b8rvY-00029g-3r
	for gclcip-std-proposals@m.gmane.org; Fri, 03 Jun 2016 18:26:28 +0200
Original-Received: by mail-wm0-f69.google.com with SMTP id n2sf1036356wma.0
        for <gclcip-std-proposals@m.gmane.org>; Fri, 03 Jun 2016 09:26:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=subject:to:references:from:message-id:date:user-agent:mime-version
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=JuwXyvD+6JCdHHmoMxRE4zzR5OUjUH5E4ffjaUdGaD0=;
        b=n8SF+XSjKRSH3bzBLv0NgmzfZpztuLjz5O8x782gqjupkD7togpN1q7XH4pq93HVhs
         nRvqwGloFadLVDZ+n6CImVoUS2PfQrCX5JuSrDR8kuouwuW6PKdzv8eHJYgS31UTAEhE
         bZnw0k1voOuf4yxWj3n0Kfz1AedOjd8sf6RsNVbHC64/v4TyohhsGSgaY6qQJ7ecQ/Wk
         8CikjIQ7NtnfDA5sZDo7aPKo7ktKeTH34tHrUw0xX7nZ4l3C9vMFndeihnrCW6H3FI18
         fcy13lzp+pLyUQwyyVs0YhIYkufVhgRYLNn0iE+vyII54MRNwxoHOrj1BTFjeJXQ3Cho
         M07g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:subject:to:references:from:message-id:date
         :user-agent:mime-version:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=JuwXyvD+6JCdHHmoMxRE4zzR5OUjUH5E4ffjaUdGaD0=;
        b=NrdCgOWYLhyjknY3WMLSWZ/Cvj/3Cej1G6fROa4TuQJZMB4RMi3wQn0F0XVYB4WTOY
         IFPHWF4hQVrR2aaZ1ST456aJX+JVEM2qXs1IFAVE5/4GChJIl6Ln4ETdDSiyeHd7Nrby
         aGzWTvKn1DuV5R3hrY1KRQ0JCx60YlZD3vgNCZHshHFoGpZ+2wG8uWl5npQxk2kuVjq5
         uAlje+9V8/uNKPHA39BUNXs2qEAhpDJ9OvmF/DN2FSy8p+zdJ9qUexCdJcNaLBPi0uRS
         pIydP/emIQB/CkMBSy0OnsIsnyJDWGSLz4e6bKrlyv+aCjonjp6VGq3rHfEWmpqubvsE
         1INQ==
X-Gm-Message-State: ALyK8tJ/4Jv4IqG4NxJpK9YiK2TYixOOkiDHirtsby7kSHoREt9lgIyVzUPrR/FQYQ6TzQ==
X-Received: by 10.25.39.21 with SMTP id n21mr691349lfn.5.1464971187619;
        Fri, 03 Jun 2016 09:26:27 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.150.130 with SMTP id y124ls13262wmd.27.canary; Fri, 03 Jun
 2016 09:26:25 -0700 (PDT)
X-Received: by 10.194.153.65 with SMTP id ve1mr4299804wjb.106.1464971185589;
        Fri, 03 Jun 2016 09:26:25 -0700 (PDT)
Original-Received: from outc-mail-2.stofanet.dk (outc-mail-2.stofanet.dk. [212.10.10.78])
        by mx.google.com with ESMTPS id 188si425851wmq.36.2016.06.03.09.26.25
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 03 Jun 2016 09:26:25 -0700 (PDT)
Received-SPF: pass (google.com: best guess record for domain of breese@mail1.stofanet.dk designates 212.10.10.78 as permitted sender) client-ip=212.10.10.78;
Original-Received: from [192.168.1.101] ([86.52.14.176])
	by cmsmtp with SMTP
	id 8rvTbeCb56gMK8rvUb1drE; Fri, 03 Jun 2016 18:26:25 +0200
Original-References: 
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.8.0
X-CMAE-Envelope: MS4wfOaGsZvfOE7SWsmQOAdPFUq4FoVm0K2Os0QfaEfr1HXaw7vFh/RFntXi8OJ/1Ttpx5xDzNeG9qAk6UP9eHqq5IFdh2zpwSVyH2hRdEWYVg8F2gHtmHTD
 YTumpu99msNTyMrsKXECOJrpVq0B4c66CdZ9Bt1dBVZS5iUHsIHkTP40IIECirNxRsCRq1bVfIrrlw==
X-Original-Sender: breese@mail1.stofanet.dk
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 best guess record for domain of breese@mail1.stofanet.dk designates
 212.10.10.78 as permitted sender) smtp.mailfrom=breese@mail1.stofanet.dk
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:26135
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/26135>

I would approach an audio API differently.

The basic audio primitives are playing and recording. These are
essentially I/O (write and read) operations. Therefore I would base
them on io_context from Networking TS, so we can have both synchronous
and asynchronous audio operations. That way we have not imposed an
audio pipeline architecture.

Such a low-level audio API should not include things like decoding,
demuxing, resampling, or signal processing. If needed, they can be
added later as part of a higher level audio API.

-- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/5751B06A.4080501%40mail1.stofanet.dk.

.
