220 26153 <2537589.a8BC4svcIn@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 20:02:44 -0300
Lines: 42
Approved: news@gmane.org
Message-ID: <2537589.a8BC4svcIn@tjmaciei-mobl1>
References: <5751B06A.4080501@mail1.stofanet.dk> <2028636.MhYnudsMAW@tjmaciei-mobl1> <f94572e6-9d6a-4a46-af33-81bfc8e63520@isocpp.org>
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 1464994978 13554 80.91.229.3 (3 Jun 2016 23:02:58 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 3 Jun 2016 23:02:58 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBGEZZC5AKGQE22K3PZY@isocpp.org Sat Jun 04 01:02:50 2016
Return-path: <std-proposals+bncBCB4TK757YBRBGEZZC5AKGQE22K3PZY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lf0-f72.google.com ([209.85.215.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCB4TK757YBRBGEZZC5AKGQE22K3PZY@isocpp.org>)
	id 1b8y78-0007Ec-01
	for gclcip-std-proposals@m.gmane.org; Sat, 04 Jun 2016 01:02:50 +0200
Original-Received: by mail-lf0-f72.google.com with SMTP id o70sf43223446lfg.1
        for <gclcip-std-proposals@m.gmane.org>; Fri, 03 Jun 2016 16:02:49 -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=5cfMZujDzAMQwMo4KF6GMDdhd163+D5XoMPP9aX+lcU=;
        b=WKv8aucBWh54mLMAdemL9kY+F4Lp7oppgNrBiSoN1uaQUu2cX9S1DfxX9QgbPXPCLI
         h3vrv4WoTDxaOotCchmoo63fCwrGmEos2f2zsXwKn7WJsoP1NyvlbBEVjlH9IynBhelo
         0e2R6xrOCI7OaVqYUBRFtDg2e9mHYn1vZgYjg5YnXnz5U4Tpgu9DRE+h0x4vbxEl5aew
         odoFsJHliSS9gsMugQg+LO0VXap6O4OP/9fUJpr9j8E8+LrK5bVAD80hslCd06gCFYao
         xsqF0FEvJt3TV3xwjaVad5obFckGml1bTcwnzUHRxXhWV1camS9X6eJwf1twpOxU13SX
         UdWQ==
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=5cfMZujDzAMQwMo4KF6GMDdhd163+D5XoMPP9aX+lcU=;
        b=bIhCJuODyMk29VSar7mjpClqZj07UMLHwoi+A3om/al8O+xZQJ8HiI55wRpJy3p/BW
         2sBxFuJyWiWcTihs7k9LgMjfjE1OCbuCOo0MG3SwYO2BSLGFGRyxUDMnfTVNetWMoBUA
         mW4glFIj3mfVrU0ewWNaW9CzjsBQ5XN7YzhP9HzA7Rk7ra1yWpfWDKqkPOppwhVRjLOT
         2rRb2yjWsRljz0jLzF6sj2rmhEwk5z1albgvRZBdtpeifjvu+Lq0rVZL65oj+E6/chPE
         j1GSIzTgYZ2chmQikLpdaCuDqE/5scoBDCRd4C8KYkSRyuDpoCgcGEvqpsvZG61UKBAt
         esRA==
X-Gm-Message-State: ALyK8tJ/D0ZhtRq32MkpNhfG5tL68GlNsyqAD3MOAmExqgZp3g9MwF5cALGOSTk/NcJd5w==
X-Received: by 10.46.32.35 with SMTP id g35mr872209ljg.8.1464994969437;
        Fri, 03 Jun 2016 16:02:49 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.0.71 with SMTP id 68ls63222wma.18.canary; Fri, 03 Jun 2016
 16:02:48 -0700 (PDT)
X-Received: by 10.194.204.233 with SMTP id lb9mr5228481wjc.147.1464994968255;
        Fri, 03 Jun 2016 16:02: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 q193si2226417wme.57.2016.06.03.16.02.48
        for <std-proposals@isocpp.org>;
        Fri, 03 Jun 2016 16:02: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 599F411B59A
	for <std-proposals@isocpp.org>; Fri,  3 Jun 2016 16:02: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: <f94572e6-9d6a-4a46-af33-81bfc8e63520@isocpp.org>
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:26153
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/26153>

On sexta-feira, 3 de junho de 2016 15:30:03 BRT alexander.zywicki@gmail.com 
wrote:
> I feel that you may be missing the point of the library, in order to do any
> "real" audio work you need direct access to the audio data. 

I might be missing your orignial intention, but nonetheless it is a valid 
concern and a very common (probably the most common) use-case for an audio 
API.

> And yes I agree
> that multimedia is a patent minefield but there are open source versions of
> most media formats that could be used if needed. 

That's not how patents work. Please design your system without ever writing a 
line of code that reads directly from or writes directly to a file. I would say 
that uncompressed PCM is probably safe, but I am not a lawyer and I can't even 
say that (note: .wav files are not just plain PCM).

Instead, write it so that it will work on a heavily locked-down system like 
iOS.

> But that is besides the
> point here, the library would only provide a standardized interface of how
> to interact with audio(or other signal types) and place only the needed
> constraints on the implementors of the library. The only guarantee that
> needs to be made is that data will be delivered to and from the application
> in the requested format if possible, the how will be OS specific and
> implementation defined

That's orthogonal to what I was asking. And somewhat useless if you can't play 
or record audio, nor load it from a file or save it after processing.

-- 
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/2537589.a8BC4svcIn%40tjmaciei-mobl1.

.
