diff options
Diffstat (limited to 'libao2/ao_pcm.c')
-rw-r--r-- | libao2/ao_pcm.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libao2/ao_pcm.c b/libao2/ao_pcm.c index b64118ff31..3379caf41f 100644 --- a/libao2/ao_pcm.c +++ b/libao2/ao_pcm.c @@ -35,7 +35,7 @@ #include "help_mp.h" -static const ao_info_t info = +static const ao_info_t info = { "RAW PCM/WAVE file writer audio output", "pcm", @@ -149,13 +149,13 @@ static int init(int rate,int channels,int format,int flags){ wavhdr.bytes_per_second = le2me_32(ao_data.bps); wavhdr.bits = le2me_16(bits); wavhdr.block_align = le2me_16(ao_data.channels * (bits / 8)); - + wavhdr.data = le2me_32(WAV_ID_DATA); wavhdr.data_length=le2me_32(0x7ffff000); wavhdr.file_length = wavhdr.data_length + sizeof(wavhdr) - 8; - mp_msg(MSGT_AO, MSGL_INFO, MSGTR_AO_PCM_FileInfo, ao_outputfilename, - (ao_pcm_waveheader?"WAVE":"RAW PCM"), rate, + mp_msg(MSGT_AO, MSGL_INFO, MSGTR_AO_PCM_FileInfo, ao_outputfilename, + (ao_pcm_waveheader?"WAVE":"RAW PCM"), rate, (channels > 1) ? "Stereo" : "Mono", af_fmt2str_short(format)); mp_msg(MSGT_AO, MSGL_INFO, MSGTR_AO_PCM_HintInfo); @@ -166,14 +166,14 @@ static int init(int rate,int channels,int format,int flags){ } return 1; } - mp_msg(MSGT_AO, MSGL_ERR, MSGTR_AO_PCM_CantOpenOutputFile, + mp_msg(MSGT_AO, MSGL_ERR, MSGTR_AO_PCM_CantOpenOutputFile, ao_outputfilename); return 0; } // close audio device static void uninit(int immed){ - + if(ao_pcm_waveheader){ /* Rewrite wave header */ if (fseek(fp, 0, SEEK_SET) != 0) mp_msg(MSGT_AO, MSGL_ERR, "Could not seek to start, WAV size headers not updated!\n"); @@ -232,7 +232,7 @@ static int play(void* data,int len,int flags){ buffer[i] = le2me_16(buffer[i]); } } -#endif +#endif if (ao_data.channels == 6 || ao_data.channels == 5) { int frame_size = le2me_16(wavhdr.bits) / 8; @@ -248,7 +248,7 @@ static int play(void* data,int len,int flags){ if(ao_pcm_waveheader) data_length += len; - + return len; } |