17c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi/*
27c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi * Copyright (C) 2011 The Android Open Source Project
37c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi *
47c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi * Licensed under the Apache License, Version 2.0 (the "License");
57c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi * you may not use this file except in compliance with the License.
67c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi * You may obtain a copy of the License at
77c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi *
87c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi *      http://www.apache.org/licenses/LICENSE-2.0
97c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi *
107c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi * Unless required by applicable law or agreed to in writing, software
117c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi * distributed under the License is distributed on an "AS IS" BASIS,
127c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
137c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi * See the License for the specific language governing permissions and
147c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi * limitations under the License.
157c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi */
167c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi/**
177c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi*************************************************************************
187c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi * @file    M4READER_Pcm.h
197c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi * @brief    Generic encapsulation of the core wav reader
207c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi * @note    This file declares the generic shell interface retrieving function
217c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi *            of the wav reader
227c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi*************************************************************************
237c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi*/
247c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi#ifndef __M4READER_PCM_H__
257c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi#define __M4READER_PCM_H__
267c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi
277c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi#include "M4READER_Common.h"
287c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi
297c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi#ifdef __cplusplus
307c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargiextern "C" {
317c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi#endif /* __cplusplus */
327c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi
337c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi/**
347c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi*************************************************************************
357c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi* @brief Retrieves the generic interfaces implemented by the reader
367c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi*
377c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi* @param pMediaType             : Pointer on a M4READER_MediaType (allocated by the caller)
387c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi*                              that will be filled with the media type supported by this reader
397c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi* @param pRdrGlobalInterface : Address of a pointer that will be set to the global interface
407c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi*                              implemented by this reader. The interface is a structure allocated
417c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi*                              by the function and must be un-allocated by the caller.
427c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi* @param pRdrDataInterface   : Address of a pointer that will be set to the data interface
437c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi*                              implemented by this reader. The interface is a structure allocated
447c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi*                              by the function and must be un-allocated by the caller.
457c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi*
467c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi* @returns : M4NO_ERROR     if OK
477c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi*             ERR_ALLOC      if an allocation failed
487c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi*            ERR_PARAMETER  at least one parameter is not properly set (in DEBUG only)
497c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi*************************************************************************
507c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi*/
517c9d8018755adf1857571125ba1b3598c96ea506Dharmaray KundargiM4OSA_ERR M4READER_PCM_getInterfaces(M4READER_MediaType *pMediaType,
527c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi                                        M4READER_GlobalInterface **pRdrGlobalInterface,
537c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi                                        M4READER_DataInterface **pRdrDataInterface);
547c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi
557c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi#ifdef __cplusplus
567c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi}
577c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi#endif /* __cplusplus */
587c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi
597c9d8018755adf1857571125ba1b3598c96ea506Dharmaray Kundargi#endif /*__M4READER_PCM_H__*/
60