Skip to content

Commit

Permalink
set default audio sample rate to 44100 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
thijstriemstra committed Sep 22, 2015
1 parent d3b42c1 commit d1dad90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ The available options for this plugin are:
| `maxLength` | float | `10` | Maximum length of the recorded clip. |
| `audioEngine` | string | `recordrtc` | Audio recording library to use. Legal values are `recordrtc` and `libvorbis.js`. |
| `audioBufferSize` | float | `4096` | The size of the audio buffer (in sample-frames per second). Legal values: 0, 256, 512, 1024, 2048, 4096, 8192 and 16384. |
| `audioSampleRate` | float | `22050` | The audio sample rate (in sample-frames per second) at which the `AudioContext` handles audio. Legal values are in the range of 22050 to 96000. |
| `audioSampleRate` | float | `44100` | The audio sample rate (in sample-frames per second) at which the `AudioContext` handles audio. Legal values are in the range of 22050 to 96000. |
| `animationFrameRate` | float | `200` | Frame rate for animated GIF (in frames per second). |
| `animationQuality` | float | `10` | Sets quality of color quantization (conversion of images to the maximum 256 colors allowed by the GIF specification). Lower values (minimum = 1) produce better colors, but slow processing significantly. The default produces good color mapping at reasonable speeds. Values greater than 20 do not yield significant improvements in speed. |
| `debug` | boolean | `false` | Enables console log messages. |
Expand Down
2 changes: 1 addition & 1 deletion src/js/videojs.record.js
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,7 @@
// linear PCM audio data in the buffer in sample-frames per second.
// An implementation must support sample-rates in at least
// the range 22050 to 96000.
audioSampleRate: 22050,
audioSampleRate: 44100,
// Frame rate in frames per second.
animationFrameRate: 200,
// Sets quality of color quantization (conversion of images to the
Expand Down

0 comments on commit d1dad90

Please sign in to comment.