]> git.sesse.net Git - vlc/commitdiff
* wav: Support for alaw/ulaw data. (untested)
authorLaurent Aimar <fenrir@videolan.org>
Tue, 11 Mar 2003 06:45:59 +0000 (06:45 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 11 Mar 2003 06:45:59 +0000 (06:45 +0000)
modules/demux/wav/wav.c

index 0e646eafcec8c7c62974f9047e5385179956e29a..86a9ddec5551b4dd3807cd5ac07b9d0d83acfc0a 100644 (file)
@@ -2,7 +2,7 @@
  * wav.c : wav file input module for vlc
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: wav.c,v 1.13 2003/02/27 13:19:43 gbazin Exp $
+ * $Id: wav.c,v 1.14 2003/03/11 06:45:59 fenrir Exp $
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *
  * This program is free software; you can redistribute it and/or modify
@@ -451,6 +451,18 @@ static int WAVInit( vlc_object_t * p_this )
             p_demux->GetFrame = PCM_GetFrame;
             p_demux->psz_demux = strdup( "" );
             break;
+        case( WAVE_FORMAT_MULAW ):
+            msg_Dbg( p_input,"found mulaw pcm audio format" );
+            p_demux->i_fourcc = VLC_FOURCC( 'u', 'l', 'a', 'w' );
+            p_demux->GetFrame = PCM_GetFrame;
+            p_demux->psz_demux = strdup( "" );
+            break;
+        case( WAVE_FORMAT_ALAW ):
+            msg_Dbg( p_input,"found alaw pcm audio format" );
+            p_demux->i_fourcc = VLC_FOURCC( 'a', 'l', 'a', 'w' );
+            p_demux->GetFrame = PCM_GetFrame;
+            p_demux->psz_demux = strdup( "" );
+            break;
         case( WAVE_FORMAT_MPEG ):
         case( WAVE_FORMAT_MPEGLAYER3 ):
             msg_Dbg( p_input, "found mpeg audio format" );