[MPlayer-dev-eng] sh_audio types...

Arpi arpi at thot.banki.hu
Fri Sep 20 01:59:22 CEST 2002


Hi,

> Hello,
> 
> I trying to develop a filter using the Anders new API.
> It gives me the sh_audio->a_buffer, what type is it? where it is
> defined?

libmpdemux/stheader.h

  // out buffers:
  char* a_buffer;
  int a_buffer_len;
  int a_buffer_size;
  int sample_format;

the 'type' of a_buffer is actually depends on teh value of sample_format.
in most cases it's char or short, signed or unsigned.
see libao2/afmt.h for possible types


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list