Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#95 sample rate is hardcoded for wavetable

open
Stefan Sauer
bt-core (35)
4
2008-09-10
2008-08-20
Stefan Sauer
No

Search for 44100. Its hardcoded for wavetable playback. For song-playback we simply use gstreamers default. It would be nice to be able to configure thsi e.g. to 32000 or 22050 for e.g. use on embedded devices.

Discussion

  • Stefan Sauer
    Stefan Sauer
    2008-09-09

    > find . -name "*.c" -exec grep -Hn "44100" {} \; | grep -v cvs | grep -v other

    ./gst-buzztard/src/bml/utils.c:594: bml->samplerate=44100;
    ./gst-buzztard/src/bml/plugin.c:290: bmlw_set_master_info(120,4,44100);
    ./gst-buzztard/src/bml/plugin.c:292: bmln_set_master_info(120,4,44100);
    ./gst-buzztard/src/fluidsynth/gstfluidsynth.c:850: gstsynth->samplerate = 44100;
    ./gst-buzztard/src/simsyn/simsyn.c:341: src->samplerate = 44100;
    ./gst-buzztard/src/audiodelay/audiodelay.c:255: filter->samplerate = 44100;
    ./buzztard/src/ui/edit/btmemoryaudiosrc.c:152: src->samplerate = 44100;
    ./buzztard/src/lib/core/wave.c:148: gint channels=1,rate=44100;

    for defaults we could also use GST_AUDIO_DEF_RATE from
    #include <gst/audio/audio.h>

     
  • Stefan Sauer
    Stefan Sauer
    2008-09-10

    • priority: 5 --> 4
    • summary: sample rate is hardcoded --> sample rate is hardcoded for wavetable
     
  • Stefan Sauer
    Stefan Sauer
    2008-09-10

    Fixed for plugins.

     
  • Stefan Sauer
    Stefan Sauer
    2009-05-14

    Fixed here:
    ./buzztard/src/ui/edit/btmemoryaudiosrc.c:152: src->samplerate = 44100;
    ./buzztard/src/lib/core/wave.c:148: gint channels=1,rate=44100;