From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: any mp3 library bindings?
Date: Thu, 8 Feb 2018 17:41:45 +0100
Date: 2018-02-08T17:41:45+01:00 [thread overview]
Message-ID: <p5huk9$kar$1@dont-email.me> (raw)
In-Reply-To: <700bcb87-ac25-499e-a60a-ca18dbe088c4@googlegroups.com>
On 02/08/2018 06:23 AM, Stephen Leake wrote:
> I'm working on a web interface to my music library, and I need to read the meta info from each music file; ie, read the mp3 tags.
>
> I found ffmpeg (https://ffmpeg.org/), which provides a C interface. Does anyone have Ada bindings for that, or another mp3 library?
Gnoga has an Audio_Type, child of Multimedia_Type, which can load and play MP3s.
It has these functions to query its state:
function Loop_Media (Media : Multimedia_Type) return Boolean;
function Media_Duration (Media : Multimedia_Type) return Float;
-- Returns the duration of Media in seconds.
function Media_Source (Media : Multimedia_Type) return String;
-- Returns the URL of the current Media
function Media_Position (Media : Multimedia_Type) return Float;
-- Position of Media in seconds
function Muted (Media : Multimedia_Type) return Boolean;
function Paused (Media : Multimedia_Type) return Boolean;
function Playback_Ended (Media : Multimedia_Type) return Boolean;
-- Returns true of Media position has reached end of its duration
function Playback_Rate (Media : Multimedia_Type) return Float;
-- Playback rate.
-- Common values - 1.0 normal, 0.5 half speed, -1.0 reverse
function Ready_To_Play (Media : Multimedia_Type) return Boolean;
-- True if media is ready to be played in element
function Seeking (Media : Multimedia_Type) return Boolean;
-- True if user is seeking through media
function Volume (Media : Multimedia_Type) return Volume_Range;
-- Media volume (not system volumne) in Volume_Range
I don't know if this helps.
--
Jeff Carter
"Perfidious English mouse-dropping hoarders."
Monty Python & the Holy Grail
10
next prev parent reply other threads:[~2018-02-08 16:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-08 5:23 any mp3 library bindings? Stephen Leake
2018-02-08 16:41 ` Jeffrey R. Carter [this message]
2018-02-08 16:49 ` Per Sandberg
2018-02-09 23:24 ` Stephen Leake
2018-02-22 23:53 ` Qunying
2018-02-24 14:52 ` Per Sandberg
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox