220 26143 <2028636.MhYnudsMAW@tjmaciei-mobl1> article
Path: news.gmane.org!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Any interest to adding audio support to the std library?
Date: Fri, 03 Jun 2016 18:58:43 -0300
Lines: 37
Approved: news@gmane.org
Message-ID: <2028636.MhYnudsMAW@tjmaciei-mobl1>
References: <5751B06A.4080501@mail1.stofanet.dk> <4539123.eWIb3U4yhc@lastique-pc>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: ger.gmane.org 1464991395 25782 80.91.229.3 (3 Jun 2016 22:03:15 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 3 Jun 2016 22:03:15 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBGH3Y65AKGQEX4HND2Q@isocpp.org Sat Jun 04 00:03:02 2016
Return-path: <std-proposals+bncBCB4TK757YBRBGH3Y65AKGQEX4HND2Q@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm0-f72.google.com ([74.125.82.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCB4TK757YBRBGH3Y65AKGQEX4HND2Q@isocpp.org>)
	id 1b8x7H-0002d2-GO
	for gclcip-std-proposals@m.gmane.org; Fri, 03 Jun 2016 23:58:55 +0200
Original-Received: by mail-wm0-f72.google.com with SMTP id f75sf4537574wmf.2
        for <gclcip-std-proposals@m.gmane.org>; Fri, 03 Jun 2016 14:58:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:message-id:user-agent:in-reply-to:references
         :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=S6DQrbT0YXMvJI6VqrZsVCv92CjGz6Jf489Vv31+SlI=;
        b=cFNBwIvOC8jN87k/oBmQe4sIOXXHhBLcovKx4f729pL7AK4jfu6UUO73h+fxAH75f0
         w1+zegw6OcaacrRBIrFF1Ja7sm1fFS1vwJaQKxI+X2MnV2qpuK2T2WEaNoGL8cxLhxA5
         nBbw9PSld3qhLO4zF4Zdo8AA6cDwvXY+EFZECQOh0GS8evkmnMs0IV+I9WiPpTqowhlg
         Aux5F0LJtcxHZ378kFzwah9CzOF0y54djeqW4vCRuYpGBRrR1FXyPrz1/t1K+d9lYTV+
         +EoSVQsZleQPp8RmWmjLc7OFy0dOcTndpxKNw1kmBSKeIcftnlY2s0BDa+iVs/J+yoVV
         SC5A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:to:subject:date:message-id:user-agent
         :in-reply-to:references: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=S6DQrbT0YXMvJI6VqrZsVCv92CjGz6Jf489Vv31+SlI=;
        b=QcBbP5HRMgidUdgIwtkY563mxVwA+grCver4EDbxbgvKZ42KxPiygmasLeKIPI0g+6
         KBaHbL5C+1ZNscreN5NXClHqyqt5VrrwDlooueSTmi7JaFSjpggw997bFbA9lYyjhYuf
         fDWtoKRMT+e1vrkicRP49o3SauTYNYq3BvcPTtJaSB6AY0ylWSZl7PKLEgNvoFapG7qu
         AjXaSZ4C9DCJdkMX8q9CUN8hHyFk0S+pB1xPV3SSN73lcoFvWebprBR526IHf4AmG04q
         fIqhFdM5B6TNjDBkoNL/1tNyTEnSB3TYMiDtGKsm5QlJlvi9EUEvhcBhQCmQBpGKxTwP
         f80A==
X-Gm-Message-State: ALyK8tLSsHdWzWmYmsepu25x1UPly2RO+TRVeYtmQGC+pDyvqV47/0B4VB7R9h1bSW7boA==
X-Received: by 10.28.184.151 with SMTP id i145mr203683wmf.3.1464991129932;
        Fri, 03 Jun 2016 14:58:49 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.165.193 with SMTP id o184ls70270wme.21.gmail; Fri, 03 Jun
 2016 14:58:48 -0700 (PDT)
X-Received: by 10.28.218.10 with SMTP id r10mr1290215wmg.18.1464991128247;
        Fri, 03 Jun 2016 14:58:48 -0700 (PDT)
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [2a01:4f8:d13:f81:21c:14ff:fe01:12a3])
        by mx.google.com with ESMTP id m8si284977wjw.73.2016.06.03.14.58.48
        for <std-proposals@isocpp.org>;
        Fri, 03 Jun 2016 14:58:48 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) client-ip=2a01:4f8:d13:f81:21c:14ff:fe01:12a3;
Original-Received: from tjmaciei-mobl1.localnet (unknown [187.10.168.134])
	by gondolin.macieira.info (Postfix) with ESMTPSA id 9630811B590
	for <std-proposals@isocpp.org>; Fri,  3 Jun 2016 14:58:47 -0700 (PDT)
User-Agent: KMail/5.1.3 (Linux/4.6.0-2.ged1c6ef-default; KDE/5.22.0; x86_64; ; )
In-Reply-To: <4539123.eWIb3U4yhc@lastique-pc>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3
 as permitted sender) smtp.mailfrom=thiago@macieira.org
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:26143
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/26143>

On sexta-feira, 3 de junho de 2016 20:10:05 BRT Andrey Semashev wrote:
> On Friday, 3 June 2016 20:04:59 MSK Bjorn Reese wrote:
> > I would approach an audio API differently.
> > 
> > The basic audio primitives are playing and recording.
> 
> I disagree. I would say the basic primitives are a sample and a
> frame. Samples can be obtained and processed in different ways,
> including recording, reading from file or generating algorithmically.
> 
> The processing is often represented as a pipeline or graph with
> producer, filter and consumer nodes. This is a higher level
> framework that builds upon the basic blocks of frames and digital
> signal processing algorithms.

Considering the domain of media codecs is a patent minefield, the API should be 
designed around never having access to the actual contents of the frames, only 
that they exist.

More than likely, just "here's a file or URL, go play it", plus some time-sync 
API and some hints on what type of audio it is, so system can route it to the 
correct speaker (headphones? bluetooth? loudspeaker?). Plus the converse 
recording.

IMHO, just like the 2D graphics proposal, I think this is ill-advised as 
content for the C++ Standard Library.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

-- 
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/2028636.MhYnudsMAW%40tjmaciei-mobl1.

.
