/* Network-Integrated Multimedia Middleware (NMM)
 * http://www.motama.com/nmm.html
 *
 * Copyright (C) 2006-2007
 * Motama GmbH, Saarbruecken, Germany
 * http://www.motama.com
 *
 * This file is part of NMM. 
 * 
 * NMM is free software; you can redistribute it and/or modify it    
 * under the terms of the GNU General Public License as published by 
 * the Free Software Foundation; only version 2 of the License.      
 * 
 * NMM is distributed in the hope that it will be useful, but WITHOUT 
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 
 * License for more details.  
 * 
 * You should have received a copy of the GNU General Public License 
 * along with NMM; if not, write to the Free Software Foundation,    
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 */

#include "nmm/multimedia/INode.idl"

module NMM {

  /** Interface for configuring alsa devices.
   */

  interface IALSADevice  {

    /** Sets name of pcm device.
     *
     * @param device name of pcm device
     */
    void setPCMDevice(in string device);

    /** Returns name of pcm device.
     *
     * @return name of pcm device
     */
    string getPCMDevice() const;

    /** Sets buffer time.
     *
     * @param buffertime Buffertime.
     */
    void setBufferTime(in nmm_uint32 buffertime);

    /** Sets period time.
     *
     * @param periodtime Periodtime.
     */
    void setPeriodTime(in nmm_uint32 periodtime);

    /** Sets transfer alignment.
     *
     * @param xferalign transfer alignment
     */
    void setXferAlign(in nmm_uint32 xferalign);

    void setMicroInVolume(in nmm_int32 vol);
    nmm_int32 getMicroInVolume();

  };
}
