diff options
author | Jörg Müller <nexyon@gmail.com> | 2015-12-27 18:33:54 +0300 |
---|---|---|
committer | Jörg Müller <nexyon@gmail.com> | 2015-12-27 18:33:54 +0300 |
commit | fcc68a02e9a315fad0e1ff0df1bb3e35f1a65fe4 (patch) | |
tree | 62e6b22b5abf7d3229147a417333f33810c78248 /intern/audaspace/Python | |
parent | 0a118317fcf3ca3b650fc6428f6a6675303c49ee (diff) |
Fix T47064: Change Audio defaults to 48 kHz
Historically blender had an audio sample rate of 44.1 kHz as default which is mostly popular because it's the sample rate of audio CDs. Audaspace kept using this default from the pre 2.5 era. It was about time to change to 48 kHz, which is a more widespread standard nowadays, especially in video. It is the recommended sampling rate of the Audio Engineering Society.
Further reading: https://en.wikipedia.org/wiki/44,100_Hz#Status
Diffstat (limited to 'intern/audaspace/Python')
-rw-r--r-- | intern/audaspace/Python/AUD_PyAPI.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/audaspace/Python/AUD_PyAPI.cpp b/intern/audaspace/Python/AUD_PyAPI.cpp index dc019c1f245..300fd55e23b 100644 --- a/intern/audaspace/Python/AUD_PyAPI.cpp +++ b/intern/audaspace/Python/AUD_PyAPI.cpp @@ -128,7 +128,7 @@ Factory_new(PyTypeObject *type, PyObject *args, PyObject *kwds) } PyDoc_STRVAR(M_aud_Factory_sine_doc, - "sine(frequency, rate=44100)\n\n" + "sine(frequency, rate=48000)\n\n" "Creates a sine factory which plays a sine wave.\n\n" ":arg frequency: The frequency of the sine wave in Hz.\n" ":type frequency: float\n" @@ -142,7 +142,7 @@ static PyObject * Factory_sine(PyTypeObject* type, PyObject *args) { float frequency; - double rate = 44100; + double rate = 48000; if(!PyArg_ParseTuple(args, "f|d:sine", &frequency, &rate)) return NULL; @@ -2115,7 +2115,7 @@ Device_new(PyTypeObject *type, PyObject *args, PyObject *kwds) static const char *kwlist[] = {"type", "rate", "channels", "format", "buffer_size", "name", NULL}; int device; - double rate = AUD_RATE_44100; + double rate = AUD_RATE_48000; int channels = AUD_CHANNELS_STEREO; int format = AUD_FORMAT_FLOAT32; int buffersize = AUD_DEFAULT_BUFFER_SIZE; |