Index: audio.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/audio/audio.module,v
retrieving revision 1.116
diff -u -r1.116 audio.module
--- audio.module	28 Jul 2007 18:08:36 -0000	1.116
+++ audio.module	30 Jul 2007 19:07:13 -0000
@@ -711,9 +711,10 @@
     $form['audio_fileinfo']['filepath']['#value'] = $node->audio_file->filepath;
     $form['audio_fileinfo']['audio_upload']['#title'] = t('Replace this with a new file');
     $form['audio_fileinfo']['fileformat'] = array(
-      '#type' => 'textfield',
+      '#type' => 'select',
       '#title' => t('Format'),
       '#default_value' => $node->audio_fileinfo['fileformat'],
+      '#options' => drupal_map_assoc(array('', 'aac', 'ac3', 'au', 'avr', 'flac', 'midi', 'mod', 'mp3', 'mpc', 'ogg', 'voc'), 'drupal_strtoupper'),
     );
     $form['audio_fileinfo']['filesize'] = array(
       '#type' => 'textfield',
@@ -724,16 +725,19 @@
       '#type' => 'textfield',
       '#title' => t('Length'),
       '#default_value' => $node->audio_fileinfo['playtime'],
+      '#description' => t('The format is hours:minutes:seconds.'),
     );
     $form['audio_fileinfo']['sample_rate'] = array(
-      '#type' => 'textfield',
+      '#type' => 'select',
       '#title' => t('Sample rate'),
       '#default_value' => $node->audio_fileinfo['sample_rate'],
+      '#options' => array('' => '', '48000' => '48,000 Hz', '44100' => '44,100 Hz', '32000' => '32,000 Hz', '22050' => '22,050 Hz', '11025' => '11,025 Hz', '8000' => '8,000 Hz',),
     );
     $form['audio_fileinfo']['channel_mode'] = array(
-      '#type' => 'textfield',
+      '#type' => 'select',
       '#title' => t('Channel mode'),
       '#default_value' => $node->audio_fileinfo['channel_mode'],
+      '#options' => array('stereo' => t('Stereo'), 'mono' => t('Mono'),),
     );
     $form['audio_fileinfo']['bitrate'] = array(
       '#type' => 'textfield',
