summaryrefslogtreecommitdiffstats
path: root/webkit/media/audio_decoder.h
blob: aae5581d13ab8112140845da4b3840ca61ff76c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef WEBKIT_MEDIA_AUDIO_DECODER_H_
#define WEBKIT_MEDIA_AUDIO_DECODER_H_

#include "base/basictypes.h"

namespace WebKit { class WebAudioBus; }

namespace webkit_media {

// Decode in-memory audio file data.
bool DecodeAudioFileData(WebKit::WebAudioBus* destination_bus, const char* data,
                         size_t data_size, double sample_rate);

}  // namespace webkit_media

#endif  // WEBKIT_MEDIA_AUDIO_DECODER_H_