1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-12 18:06:18 +00:00

10l, nasty ao drivers

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14253 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2004-12-27 18:16:55 +00:00
parent 646a2a2e37
commit 8749400133

View File

@ -387,12 +387,13 @@ static int init(int rate,int channels,int format,int flags)
int bytes_per_sample = channels * AuSizeofFormat(auformat); int bytes_per_sample = channels * AuSizeofFormat(auformat);
int buffer_size; int buffer_size;
char *server; char *server;
char buf[128];
nas_data=malloc(sizeof(struct ao_nas_data)); nas_data=malloc(sizeof(struct ao_nas_data));
memset(nas_data, 0, sizeof(struct ao_nas_data)); memset(nas_data, 0, sizeof(struct ao_nas_data));
mp_msg(MSGT_AO, MSGL_V, "ao2: %d Hz %d chans %s\n",rate,channels, mp_msg(MSGT_AO, MSGL_V, "ao2: %d Hz %d chans %s\n",rate,channels,
audio_out_format_name(format)); af_fmt2str(format,&buf,128));
ao_data.format = format; ao_data.format = format;
ao_data.samplerate = rate; ao_data.samplerate = rate;