diff --git a/ChangeLog b/ChangeLog index 2235c1607..f88bdbd55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,32 @@ +2007-02-28 Javier Serrano Polo + + * src/audio/audio_alsa.cpp: + * src/audio/audio_sdl.cpp: + fixed high quality play + + * include/audio_alsa.h: + * include/audio_device.h: + * include/audio_dummy.h: + * include/audio_jack.h: + * include/audio_oss.h: + * include/audio_sdl.h: + * include/midi_alsa_raw.h: + * include/midi_alsa_seq.h + * include/midi_client.h: + * include/midi_dummy.h: + * include/midi_oss.h: + * include/setup_dialog.h: + * src/core/setup_dialog.cpp: + save device names without localization + + * data/locale/ca.ts: + updated translation + + * plugins/lb302/lb302.cpp: + * src/audio/audio_alsa.cpp: + * src/audio/audio_oss.cpp: + fixed typos + 2007-02-27 Javier Serrano Polo * src/widgets/fade_button.cpp: diff --git a/configure.in b/configure.in index e0596e64a..5325453d6 100644 --- a/configure.in +++ b/configure.in @@ -2,8 +2,8 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.50) -AC_INIT(lmms, 0.2.1-svn20070227, lmms-devel/at/lists/dot/sf/dot/net) -AM_INIT_AUTOMAKE(lmms, 0.2.1-svn20070227) +AC_INIT(lmms, 0.2.1-svn20070228, lmms-devel/at/lists/dot/sf/dot/net) +AM_INIT_AUTOMAKE(lmms, 0.2.1-svn20070228) AM_CONFIG_HEADER(config.h) diff --git a/data/locale/ca.qm b/data/locale/ca.qm index f63a49b08..06ae84cc7 100644 Binary files a/data/locale/ca.qm and b/data/locale/ca.qm differ diff --git a/data/locale/ca.ts b/data/locale/ca.ts index 7d787a145..62f670242 100644 --- a/data/locale/ca.ts +++ b/data/locale/ca.ts @@ -6,6 +6,53 @@ Desafinament de nota + + QWidget + + Name: + Nom: + + + Maker: + Fabricant: + + + Copyright: + Copyright: + + + Requires Real Time: + Requereix Temps Real: + + + Yes + + + + No + No + + + Real Time Capable: + Capaç de Temps Real: + + + In Place Broken: + Trencat En Lloc: + + + Channels In: + Canals d'Entrada: + + + Channels Out: + Canals de Sortida: + + + File: + Fitxer: + + aboutDialog @@ -26,7 +73,7 @@ Close - Tancar + Tanca Translation @@ -38,23 +85,23 @@ If you're interested in translating LMMS in another language or want to improve existing translations, you're welcome to help us! Just contact the maintainer! Javier Serrano Polo <jasp00@terra.es> - - - LMMS - A powerful synthesizer-studio - -Copyright (c) 2004-2006 LMMS-Developers - -http://lmms.sourceforge.net - LMMS - Un potent estudi-sintetitzador - -© 2004-2006 Desenvolupadors de LMMS - -http://lmms.sourceforge.net Linux MultiMedia Studio %1 Linux MultiMedia Studio %1 + + LMMS - A powerful synthesizer-studio + +Copyright (c) 2004-2007 LMMS-Developers + +http://lmms.sourceforge.net + LMMS - Un potent estudi sintetitzador + +© 2004-2007 Desenvolupadors de LMMS + +http://lmms.sourceforge.net + arpAndChordsTabWidget @@ -754,6 +801,45 @@ http://lmms.sourceforge.net Si piques aqui, el mode moure serà activat. En aquest mode pots moure els valors que has seleccionat en el mode seleccionar. També pots pitjar 'Maj+M' al teclat per a activar aquest mode. + + bassBoosterControlDialog + + Frequency + Freqüència + + + FREQ + FREQ + + + Frequency: + Freqüència: + + + Gain + Guany + + + GAIN + GUANY + + + Gain: + Guany: + + + Ratio + Proporció + + + RATIO + PROPORCIÓ + + + Ratio: + Proporció: + + bbEditor @@ -997,6 +1083,39 @@ directori de treball de LMMS. Executar ara l'assistent? Escull el directori de treball de LMMS + + effectList + + Description + Descripció + + + + effectSelectDialog + + Effects Selector + Selector d'Efectes + + + Add + Afegeix + + + Cancel + Cancel·la + + + + effectTabWidget + + EFFECTS CHAIN + CADENA D'EFECTES + + + Add + Afegeix + + envelopeAndLFOWidget @@ -1590,6 +1709,73 @@ Assegura't que tens permís d'escriptura per al fitxer/dispositiu sele FX channel Canal FX + + FX + FX + + + + kickerInstrument + + Start frequency + Freqüència inicial + + + START + INICI + + + Start frequency: + Freqüència inicial: + + + End frequency + Freqüència final + + + END + FI + + + End frequency: + Freqüència final: + + + Decay + Decaïment + + + DECAY + DECAÏMENT + + + Decay: + Decaïment: + + + Distortion + Distorsió + + + DIST + DIST + + + Distortion: + Distorsió: + + + Gain + Guany + + + GAIN + GUANY + + + Gain: + Guany: + knob @@ -1622,6 +1808,293 @@ Assegura't que tens permís d'escriptura per al fitxer/dispositiu sele &Obre a l'editor d'automatització + + ladspaBrowser + + LADSPA Plugin Browser + Navegador de connectors LADSPA + + + Available Effects + Efectes Disponibles + + + Unavailable Effects + Efectes No Disponibles + + + Instruments + Instruments + + + Analysis Tools + Eines d'Anàlisi + + + Don't know + Desconegut + + + Close + Tanca + + + This dialog displays information on all of the LADSPA plugins LMMS was able to locate. The plugins are divided into five categories based upon an interpretation of the port types and names. + +Available Effects are those that can be used by LMMS. In order for LMMS to be able to use an effect, it must, first and foremost, be an effect, which is to say, it has to have both input channels and output channels. LMMS identifies an input channel as an audio rate port containing 'in' in the name. Output channels are identified by the letters 'out'. Furthermore, the effect must have the same number of inputs and outputs and be real time capable. + +Unavailable Effects are those that were identified as effects, but either didn't have the same number of input and output channels or weren't real time capable. + +Instruments are plugins for which only output channels were identified. + +Analysis Tools are plugins for which only input channels were identified. + +Don't Knows are plugins for which no input or output channels were identified. + +Double clicking any of the plugins will bring up information on the ports. + Aquest diàleg mostra informació de tots els connectors LADSPA que LMMS ha pogut trobar. Els connectors estan dividits en cinc categories basades en la interpretació dels tipus i noms dels ports. + +Efectes Disponibles són aquells que LMMS pot usar. Per a que LMMS pugui usar un efecte, primerament, ha de ser un efecte, és a dir, ha de tenir canals d'entrada i de sortida. LMMS identifica un canal d'entrada com a un port d'àudio que conté 'in' al nom. Els canals de sortida són identificats amb les lletres 'out'. A més, l'efecte ha de tenir el mateix nombre d'entrades que de sortides i ser capaç de temps real. + +Efectes No Disponibles són aquells que han estat identificats com a efectes, però no tenen el mateix nombre d'entrades que de sortides o no són capaços de temps real. + +Instruments són connectors on només s'han identificat canals de sortida. + +Eines d'Anàlisi són connectors on només s'han identificat canals d'entrada. + +Desconeguts són connectors on no s'han identificat canals d'entrada o sortida. + +Fent doble clic a qualsevol connector mostrarà informació sobre els ports. + + + + ladspaControl + + Link channels + Enllaça canals + + + Value: + Valor: + + + Sorry, no help available. + Ajuda no disponible. + + + + ladspaControlDialog + + Channel + Canal + + + Link Channels + Enllaça Canals + + + + ladspaPortDialog + + Name + Nom + + + Rate + Taxa + + + Direction + Direcció + + + Type + Tipus + + + Min < Default < Max + Mín < Defecte < Màx + + + Logarithmic + Logarítmic + + + SR Dependent + Depenent SR + + + Audio + Àudio + + + Control + Control + + + Input + Entrada + + + Output + Sortida + + + Toggled + Commutat + + + Integer + Enter + + + Float + Flotant + + + Yes + + + + + lb302Synth + + VCF Cutoff Frequency + Freqüència de Tall VCF + + + Cutoff Freq: + Freq Tall: + + + CUT + TALL + + + VCF Resonance + Resonància VCF + + + Resonance: + Resonància: + + + RES + RES + + + VCF Envelope Mod + Mod Envoltant VCF + + + Env Mod: + Mod Env: + + + ENV MOD + MOD ENV + + + VCF Envelope Decay + Decaïment Envoltant VCF + + + Decay: + Decaïment: + + + DEC + DEC + + + Slide + Lliscament + + + Accent + Accent + + + Dead + Mort + + + 303-es-que, 24dB/octave, 3 pole filter + 303-es-que, 24dB/octava, filtre 3 pols + + + Slide Decay + Decaïment de Lliscament + + + Slide Decay: + Decaïment de Lliscament: + + + SLIDE + LLISCAMENT + + + Fine detuning of the VCO. Ranged between -100 and 100 centes. + Desafinament fi del VCO. Graduat entre -100 i 100 cents. + + + VCO Fine Detuning: + Desafinament Fi VCO: + + + DETUNE + DESAFINAMENT + + + Distortion + Distorsió + + + DIST: + DIST: + + + DIST + DIST + + + Waveform + Forma d'ona + + + WAVE + ONA + + + Sawtooth + Dent de serra + + + Inverted Sawtooth + Dent de serra invertida + + + Triangle + Triangular + + + Square + Quadrada + + + Rounded Square + Quadrada Arrodonida + + + Moog + Moog + + + WAVE: + ONA: + + lcdSpinBox @@ -1648,6 +2121,19 @@ Assegura't que tens permís d'escriptura per al fitxer/dispositiu sele --- Fitxers de fàbrica --- + + liveTool + + This tool is intended to be used in live performances, though you can use it for music production as well. +The following keys will work only if this window is active. +The spacebar toggles play and pause in the Song Editor. +F1-F10 keys mute the first 10 instruments in the Beat+Baseline Editor. + Aquesta eina està pensada per a ser usada en actuacions en directe, encara que també pots usar-la per a producció musical. +Les tecles següents només funcionaran si aquesta finestra està activa. +La barra d'espai canvia entre reproducció i pausa a l'Editor de Cançó. +Les tecles F1-F10 apaguen els 10 primers instruments a l'Editor de Ritme Base. + + mainWindow @@ -1818,14 +2304,6 @@ Assegura't que tens permís d'escriptura per al fitxer/dispositiu sele Show settings dialog Mostra el diàleg de configuració - - MultiMedia Project (*.mmp *.xml) - Projecte MultiMèdia (*.mmp *.xml) - - - MultiMedia Project (*.mmp);;MultiMedia Project Template (*.mpt) - Projecte MultiMèdia (*.mmp);;Plantilla de Projecte MultiMèdia (*.mpt) - Help not available Ajuda no disponible @@ -1844,6 +2322,228 @@ Per favor, visita http://wiki.mindrules.net per a documentació sobre LMMS.By pressing this button, you can show or hide the Automation Editor. With the help of the Automation Editor you can edit dynamic values in an easy way. Pitjant aquest botó pots mostrar o amagar l'Editor d'Automatització. Amb l'ajuda de l'Editor d'Automatització pots editar valors dinàmics fàcilment. + + &Tools + E&ines + + + LADSPA Plugins... + Connectors LADSPA... + + + MultiMedia Project (*.mmp *.mmpz *.xml) + Projecte MultiMèdia (*.mmp *.mmpz *.xml) + + + MultiMedia Project (*.mmp *.mmpz);;MultiMedia Project Template (*.mpt) + Projecte MultiMèdia (*.mmp *.mmpz);;Plantilla de Projecte MultiMèdia (*.mpt) + + + + mallets + + Spread + Dispersió + + + Spread: + Dispersió: + + + Hardness + Duresa + + + Hardness: + Duresa: + + + Position + Posició + + + Position: + Posició: + + + Vibrato Gain + Guany de Vibrat + + + Vib Gain + Guany Vib + + + Vib Gain: + Guany Vib: + + + Vibrato Freq + Freq de Vibrat + + + Vib Freq + Freq Vib + + + Vib Freq: + Freq Vib: + + + Stick Mix + Mescla de Pals + + + Stick Mix: + Mescla de Pals: + + + Modulator + Modulador + + + Modulator: + Modulador: + + + Crossfade + Entremescla + + + Crossfade: + Entremescla: + + + LFO Speed + Velocitat OBF + + + LFO Speed: + Velocitat OBF: + + + LFO Depth + Profunditat OBF + + + LFO Depth: + Profunditat OBF: + + + ADSR + ADSR + + + ADSR: + ADSR: + + + Bowed + Doblegat + + + Pressure + Pressió + + + Pressure: + Pressió: + + + Motion + Moviment + + + Motion: + Moviment: + + + Speed + Velocitat + + + Speed: + Velocitat: + + + Vibrato + Vibrat + + + Vibrato: + Vibrat: + + + Instrument + Instrument + + + Marimba + Marimba + + + Vibraphone + Vibràfon + + + Agogo + Agogo + + + Wood1 + Fusta1 + + + Reso + Reso + + + Wood2 + Fusta2 + + + Beats + Batecs + + + Two Fixed + Fixat a Dos + + + Clump + Grup + + + Tubular Bells + Campanes Tubulars + + + Uniform Bar + Barra Uniforme + + + Tuned Bar + Barra Afinada + + + Glass + Cristall + + + Tibetan Bowl + Bol Tibetà + + + + meterDialog + + Meter Numerator + Numerador de Mesurador + + + Meter Denominator + Denominador de Mesurador + midiClient @@ -2265,6 +2965,34 @@ usa la roda del ratolí per a ajustar el volum d'un pas simple sampler with various settings for using samples (e.g. drums) in an instrument-track mostrejador simple amb diferents paràmetres per a usar mostres (p.e. bateria) en una pista d'instrument + + Tuneful things to bang on + Coses melòdiques per a fer soroll + + + Incomplete monophonic immitation tb303 + Imitació monofònica incompleta tb303 + + + plugin for using arbitrary LADSPA-effects inside LMMS. + connector per a usar efectes LADSPA arbitraris a LMMS. + + + plugin for using arbitrary VST-effects inside LMMS. + connector per a usar efectes VST arbitraris a LMMS. + + + versatile kick- & bassdrum-synthesizer + sintetitzador versàtil de guitza & bombo + + + Singer bot to add some basic vocals + Bot cantant per a afegir veus bàsiques + + + Tool for live performance + Eina per a actuació en directe + projectNotes @@ -2385,6 +3113,124 @@ usa la roda del ratolí per a ajustar el volum d'un pas &Color... + + rackPlugin + + Turn the effect off + Apaga l'efecte + + + On/Off + Encès/Apagat + + + Toggles the effect on or off. + Encèn o apaga l'efecte. + + + Wet/Dry mix + Mescla Moll/Sec + + + W/D + M/S + + + Wet Level: + Nivell de Moll: + + + The Wet/Dry knob sets the ratio between the input signal and the effect that shows up in the output. + La roda Moll/Sec indica la proporció entre el senyal d'entrada i l'efecte que es mostra a la sortida. + + + Decay + Decaïment + + + Time: + Temps: + + + The Decay knob controls how many buffers of silence must pass before the plugin stops processing. Smaller values will reduce the CPU overhead but run the risk of clipping the tail on delay effects. + La roda Decaïment controla quants períodes de silenci han de passar abans de que el connector aturi el processament. Valors més petits reduiran la càrrega de CPU, però augmenten el risc de tallar la cua als efectes de retard. + + + Gate + Porta + + + Gate: + Porta: + + + The Gate knob controls the signal level that is considered to be 'silence' while deciding when to stop processing signals. + La roda Porta controla el nivell de senyal que és considerat 'silenci' mentre decideix quan aturar de processar senyals. + + + Controls + Controls + + + Effect plugins function as a chained series of effects where the signal will be processed from top to bottom. + +The On/Off switch allows you to bypass a given plugin at any point in time. + +The Wet/Dry knob controls the balance between the input signal and the effected signal that is the resulting output from the effect. The input for one stage is the output from the previous stage, so the 'dry' signal for effects lower in the chain contains all of the previous effects. + +The Decay knob controls how long the signal will continue to be processed after the notes have been released. The effect will stop processing signals when the signal has dropped below a given threshold for a given length of time. This knob sets the 'given length of time'. Longer times will require more CPU, so this number should be set low for most effects. It needs to be bumped up for effects that produce lengthy periods of silence, e.g. delays. + +The Gate knob controls the 'given threshold' for the effect's auto shutdown. The clock for the 'given length of time' will begin as soon as the processed signal level drops below the level specified with this knob. + +The Controls button opens a dialog for editing the effect's parameters. + +Right clicking will bring up a context menu where you can change the order in which the effects are processed or delete an effect altogether. + Els connectors d'efecte funcionen com una sèrie encadenada d'efectes on el senyal serà processat de dalt a baix. +El commutador Encès/Apagat et permet evitar un connector determinat en qualsevol moment. +La roda Moll/Sec controla el balanç entre el senyal d'entrada i el resultant d'aplicar l'efecte. L'entrada d'una etapa és la sortida de l'etapa anterior, així que el senyal 'sec' per a efectes inferiors a la cadena conté tots els efectes previs. +La roda Decaïment controla quant de temps el senyal continuarà sent processat després d'haver alliberat les notes. L'efecte aturarà de processar senyals quan el senyal hagi caigut sota un llindar determinat per a una durada donada. Aquesta roda estableix la 'durada donada'. Temps més llargs requeriran més CPU, així que aquest número hauria de ser baix per a la majoria d'efectes. Necessita augmentar-se per a efectes que produeixen períodes perllongats de silenci, p.e. retards. +La roda Porta controla el 'llindar determinat' per a l'aturada de l'efecte. El rellotge per a la 'durada donada' començarà així que el nivell del senyal processat caigui sota el nivell especificat amb aquesta roda. +El botó Controls obre un diàleg per a editar els paràmetres de l'efecte. +Un clic dret mostrarà un menú contextual on podràs canviar l'ordre en el qual els efectes són processats o esborrar un efecte. + + + Move &up + Mou a&munt + + + Move &down + Mou a&vall + + + &Remove this plugin + &Treu aquest connector + + + &Help + &Ajuda + + + + remoteVSTPlugin + + Loading plugin + Carregant connector + + + Please wait while loading VST-plugin... + Per favor, espera mentre es carrega el connector VST... + + + Failed loading VST-plugin + Ha fallat la càrrega del connector VST + + + The VST-plugin %1 could not be loaded for some reason. +If it runs with other VST-software under Linux, please contact an LMMS-developer! + El connector VST %1 no s'ha pogut carregar per alguna raó. +Si funciona amb altre programari VST sota Linux, per favor contacta amb un desenvolupador de LMMS! + + renameDialog @@ -2422,14 +3268,18 @@ usa la roda del ratolí per a ajustar el volum d'un pas Open audio file Obre fitxer d'àudio - - All Audio-Files (*.wav *.ogg *.flac *.voc *.aif *.aiff *.au *.raw) - Tots els Fitxers d'Àudio (*.wav *.ogg *.flac *.voc *.aif *.aiff *.au *.raw) - FLAC-Files (*.flac) Fitxers FLAC (*.flac) + + All Audio-Files (*.wav *.ogg *.flac *.spx *.voc *.aif *.aiff *.au *.raw) + Tots els Fitxers d'Àudio (*.wav *.ogg *.flac *.spx *.voc *.aif *.aiff *.au *.raw) + + + SPEEX-Files (*.spx) + Fitxers SPEEX (*.spx) + sampleTCO @@ -2609,6 +3459,40 @@ Latència: %2 ms Here you can select your preferred MIDI-interface. Depending on the configuration of your system during compilation time you can choose between ALSA, OSS and more. Below you see a box which offers controls to setup the selected MIDI-interface. Aquí pots seleccionar la teva interfície MIDI preferida. Depenent de la configuració del teu sistema durant el temps de compilació, pots escollir entre ALSA, OSS i més. Abaix pots veure una caixa amb controls per a configurar la interfície MIDI seleccionada. + + Do not compress project files per default + No comprimeixis per defecte els fitxers de projecte + + + LADSPA plugin directories + Directoris de connectors LADSPA + + + STK rawwave directory + Directori d'ones crues STK + + + SMP support + Suport SMP + + + Parallelizing level + Nivell de paral·lelització + + + If you have a machine with more then one processor (e.g. dual-core systems) you should use a parallelizing-level above 1 which means that LMMS will try to split up sound-processing into several threads which should should be run on several cores by the underlaying operating-system. +Please note that in some cases parallelizing won't work with small buffer-sizes. If you experience problems (i.e. lot of xruns), try to increase buffer-size. + Si tens una màquina amb més d'un processador (p.e. sistemes amb nucli dual) hauries d'usar un nivell de paral·lelització més gran que 1, que vol dir que LMMS tractarà de dividir el processament de so en varis fils que haurien d'executar-se en varis nuclis pel sistema operatiu subjacent. +Fixa't que en alguns casos la paral·lelització no funcionarà amb memòries intermèdies de petit tamany. Si experimentes problemes (p.e. molts xruns), prova d'augmentar el tamany de la memòria intermèdia. + + + Choose LADSPA plugin directory + Escull un directori de connectors LADSPA + + + Choose STK rawwave directory + Escull el directori d'ones crues STK + setupWidget @@ -2934,6 +3818,14 @@ Per favor, assegura't que tens permís d'escriptura per a aquest fitxe &Open in automation editor &Obre a l'editor d'automatització + + Custom... + Personalitzat... + + + Custom + Personalitzat + timeLine @@ -3092,6 +3984,14 @@ clic dret = apaga totes les altres pistes (solo) Mute Apaga + + Enable automation + Habilita automatització + + + Disable automation + Inhabilita automatització + tripleOscillator diff --git a/include/audio_alsa.h b/include/audio_alsa.h index f4b125a67..93911d382 100644 --- a/include/audio_alsa.h +++ b/include/audio_alsa.h @@ -1,7 +1,7 @@ /* * audio_alsa.h - device-class that implements ALSA-PCM-output * - * Copyright (c) 2004-2006 Tobias Doerffel + * Copyright (c) 2004-2007 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -57,8 +57,8 @@ public: inline static QString name( void ) { - return( setupWidget::tr( "ALSA (Advanced Linux Sound " - "Architecture)" ) ); + return( QT_TRANSLATE_NOOP( "setupWidget", + "ALSA (Advanced Linux Sound Architecture)" ) ); } static QString probeDevice( void ); diff --git a/include/audio_device.h b/include/audio_device.h index aa9995c71..7e9f41eb8 100644 --- a/include/audio_device.h +++ b/include/audio_device.h @@ -1,7 +1,7 @@ /* * audio_device.h - base-class for audio-devices, used by LMMS-mixer * - * Copyright (c) 2004-2006 Tobias Doerffel + * Copyright (c) 2004-2007 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -113,7 +113,7 @@ public: public: setupWidget( const QString & _caption, QWidget * _parent ) : tabWidget( tabWidget::tr( "Settings for %1" ).arg( - _caption ).toUpper(), _parent ) + tr( _caption ) ).toUpper(), _parent ) { } diff --git a/include/audio_dummy.h b/include/audio_dummy.h index 92c664f80..937d84d50 100644 --- a/include/audio_dummy.h +++ b/include/audio_dummy.h @@ -1,7 +1,7 @@ /* * audio_dummy.h - dummy-audio-device * - * Copyright (c) 2004-2006 Tobias Doerffel + * Copyright (c) 2004-2007 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -48,7 +48,8 @@ public: inline static QString name( void ) { - return( setupWidget::tr( "Dummy (no sound output)" ) ); + return( QT_TRANSLATE_NOOP( "setupWidget", + "Dummy (no sound output)" ) ); } diff --git a/include/audio_jack.h b/include/audio_jack.h index 6ae03e77b..b7c60c32e 100644 --- a/include/audio_jack.h +++ b/include/audio_jack.h @@ -1,7 +1,7 @@ /* * audio_jack.h - support for JACK-transport * - * Copyright (c) 2005-2006 Tobias Doerffel + * Copyright (c) 2005-2007 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -73,7 +73,8 @@ public: inline static QString name( void ) { - return( setupWidget::tr( "JACK (JACK Audio Connection Kit)" ) ); + return( QT_TRANSLATE_NOOP( "setupWidget", + "JACK (JACK Audio Connection Kit)" ) ); } diff --git a/include/audio_oss.h b/include/audio_oss.h index a214d4345..38389c271 100644 --- a/include/audio_oss.h +++ b/include/audio_oss.h @@ -1,7 +1,7 @@ /* * audio_oss.h - device-class that implements OSS-PCM-output * - * Copyright (c) 2004-2006 Tobias Doerffel + * Copyright (c) 2004-2007 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -53,7 +53,8 @@ public: inline static QString name( void ) { - return( setupWidget::tr( "OSS (Open Sound System)" ) ); + return( QT_TRANSLATE_NOOP( "setupWidget", + "OSS (Open Sound System)" ) ); } static QString probeDevice( void ); diff --git a/include/audio_sdl.h b/include/audio_sdl.h index a59366c82..368af2802 100644 --- a/include/audio_sdl.h +++ b/include/audio_sdl.h @@ -1,7 +1,7 @@ /* * audio_sdl.h - device-class that performs PCM-output via SDL * - * Copyright (c) 2004-2006 Tobias Doerffel + * Copyright (c) 2004-2007 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -57,7 +57,8 @@ public: inline static QString name( void ) { - return( setupWidget::tr( "SDL (Simple DirectMedia Layer)" ) ); + return( QT_TRANSLATE_NOOP( "setupWidget", + "SDL (Simple DirectMedia Layer)" ) ); } diff --git a/include/midi_alsa_raw.h b/include/midi_alsa_raw.h index 93543fa76..149058dd9 100644 --- a/include/midi_alsa_raw.h +++ b/include/midi_alsa_raw.h @@ -1,7 +1,7 @@ /* * midi_alsa_raw.h - midi-client for RawMIDI via ALSA * - * Copyright (c) 2005-2006 Tobias Doerffel + * Copyright (c) 2005-2007 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -69,8 +69,8 @@ public: inline static QString name( void ) { - return( setupWidget::tr( "ALSA Raw-MIDI (Advanced Linux Sound " - "Architecture)" ) ); + return( QT_TRANSLATE_NOOP( "setupWidget", + "ALSA Raw-MIDI (Advanced Linux Sound Architecture)" ) ); } diff --git a/include/midi_alsa_seq.h b/include/midi_alsa_seq.h index 376889f1f..3b8efd280 100644 --- a/include/midi_alsa_seq.h +++ b/include/midi_alsa_seq.h @@ -1,7 +1,7 @@ /* * midi_alsa_seq.h - ALSA-sequencer-client * - * Copyright (c) 2005-2006 Tobias Doerffel + * Copyright (c) 2005-2007 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -79,7 +79,8 @@ public: inline static QString name( void ) { - return( setupWidget::tr( "ALSA-Sequencer (Advanced Linux Sound " + return( QT_TRANSLATE_NOOP( "setupWidget", + "ALSA-Sequencer (Advanced Linux Sound " "Architecture)" ) ); } diff --git a/include/midi_client.h b/include/midi_client.h index 4a727d35f..c502ea8d1 100644 --- a/include/midi_client.h +++ b/include/midi_client.h @@ -1,7 +1,7 @@ /* * midi_client.h - base-class for MIDI-clients like ALSA-sequencer-client * - * Copyright (c) 2005-2006 Tobias Doerffel + * Copyright (c) 2005-2007 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -117,7 +117,7 @@ public: public: setupWidget( const QString & _caption, QWidget * _parent ) : tabWidget( tabWidget::tr( "Settings for %1" ).arg( - _caption ).toUpper(), _parent ) + tr( _caption ) ).toUpper(), _parent ) { } diff --git a/include/midi_dummy.h b/include/midi_dummy.h index 3dd7f851e..5f4ec39a6 100644 --- a/include/midi_dummy.h +++ b/include/midi_dummy.h @@ -1,7 +1,7 @@ /* * midi_dummy.h - dummy MIDI-driver * - * Copyright (c) 2005-2006 Tobias Doerffel + * Copyright (c) 2005-2007 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -45,7 +45,8 @@ public: inline static QString name( void ) { - return( setupWidget::tr( "Dummy (no MIDI support)" ) ); + return( QT_TRANSLATE_NOOP( "setupWidget", + "Dummy (no MIDI support)" ) ); } diff --git a/include/midi_oss.h b/include/midi_oss.h index e11ca9d92..4b9cb931c 100644 --- a/include/midi_oss.h +++ b/include/midi_oss.h @@ -1,7 +1,7 @@ /* * midi_oss.h - OSS-raw-midi-client * - * Copyright (c) 2005-2006 Tobias Doerffel + * Copyright (c) 2005-2007 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -51,7 +51,8 @@ public: inline static QString name( void ) { - return( setupWidget::tr( "OSS Raw-MIDI (Open Sound System)" ) ); + return( QT_TRANSLATE_NOOP( "setupWidget", + "OSS Raw-MIDI (Open Sound System)" ) ); } diff --git a/include/setup_dialog.h b/include/setup_dialog.h index 2afcb997d..f4e1e07ef 100644 --- a/include/setup_dialog.h +++ b/include/setup_dialog.h @@ -1,7 +1,7 @@ /* * setup_dialog.h - dialog for setting up LMMS * - * Copyright (c) 2005-2006 Tobias Doerffel + * Copyright (c) 2005-2007 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -155,12 +155,15 @@ private: typedef QMap aswMap; typedef QMap mswMap; + typedef QMap trMap; QComboBox * m_audioInterfaces; aswMap m_audioIfaceSetupWidgets; + trMap m_audioIfaceNames; QComboBox * m_midiInterfaces; mswMap m_midiIfaceSetupWidgets; + trMap m_midiIfaceNames; } ; diff --git a/plugins/lb302/lb302.cpp b/plugins/lb302/lb302.cpp index a986275da..95025d5f5 100644 --- a/plugins/lb302/lb302.cpp +++ b/plugins/lb302/lb302.cpp @@ -345,7 +345,7 @@ lb302Synth::lb302Synth( instrumentTrack * _channel_track ) : wave_knob->setRange( 0.0f, 5.0f, 1.0f ); // Originally [0,1.0] wave_knob->setInitValue( 0.0f ); wave_knob->move( 120, 75 ); - wave_knob->setHintText( tr( "EAVE:" ) + " ", "" ); + wave_knob->setHintText( tr( "WAVE:" ) + " ", "" ); wave_knob->setLabel( tr( "WAVE")); diff --git a/src/audio/audio_alsa.cpp b/src/audio/audio_alsa.cpp index 7dbb6f85a..9d21e71ac 100644 --- a/src/audio/audio_alsa.cpp +++ b/src/audio/audio_alsa.cpp @@ -3,7 +3,7 @@ /* * audio_alsa.cpp - device-class which implements ALSA-PCM-output * - * Copyright (c) 2004-2006 Tobias Doerffel + * Copyright (c) 2004-2007 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -237,7 +237,9 @@ void audioALSA::run( void ) { if( outbuf_pos == 0 ) { + // frames depend on the sample rate const fpab_t frames = getNextBuffer( temp ); + outbuf_size = frames * channels(); convertToS16( temp, frames, getMixer()->masterGain(), @@ -355,7 +357,7 @@ int audioALSA::setHWParams( const sample_rate_t _sample_rate, else { SAMPLE_RATES[0] = 44100; - SAMPLE_RATES[1] = 82000; + SAMPLE_RATES[1] = 88200; } setSampleRate( SAMPLE_RATES[q] ); if( ( err = snd_pcm_hw_params_set_rate( m_handle, m_hwParams, diff --git a/src/audio/audio_oss.cpp b/src/audio/audio_oss.cpp index 8ff680fbf..45b41793d 100644 --- a/src/audio/audio_oss.cpp +++ b/src/audio/audio_oss.cpp @@ -3,7 +3,7 @@ /* * audio_oss.cpp - device-class that implements OSS-PCM-output * - * Copyright (c) 2004-2006 Tobias Doerffel + * Copyright (c) 2004-2007 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -216,7 +216,7 @@ audioOSS::audioOSS( const sample_rate_t _sample_rate, bool & _success_ful, else { SAMPLE_RATES[0] = 44100; - SAMPLE_RATES[1] = 82000; + SAMPLE_RATES[1] = 88200; } setSampleRate( SAMPLE_RATES[q] ); value = sampleRate(); diff --git a/src/audio/audio_sdl.cpp b/src/audio/audio_sdl.cpp index 0b0291a95..47b681580 100644 --- a/src/audio/audio_sdl.cpp +++ b/src/audio/audio_sdl.cpp @@ -3,7 +3,7 @@ /* * audio_sdl.cpp - device-class that performs PCM-output via SDL * - * Copyright (c) 2004-2006 Tobias Doerffel + * Copyright (c) 2004-2007 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -165,7 +165,10 @@ void audioSDL::sdlAudioCallback( Uint8 * _buf, int _len ) { if( m_convertedBuf_pos == 0 ) { + // frames depend on the sample rate const fpab_t frames = getNextBuffer( m_outBuf ); + m_convertedBuf_size = frames * channels() + * sizeof( int_sample_t ); convertToS16( m_outBuf, frames, getMixer()->masterGain(), diff --git a/src/core/setup_dialog.cpp b/src/core/setup_dialog.cpp index 15a738fd2..467fd4dcc 100644 --- a/src/core/setup_dialog.cpp +++ b/src/core/setup_dialog.cpp @@ -3,7 +3,7 @@ /* * setup_dialog.cpp - dialog for setting up LMMS * - * Copyright (c) 2005-2006 Tobias Doerffel + * Copyright (c) 2005-2007 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -555,20 +555,26 @@ setupDialog::setupDialog( engine * _engine, configTabs _tab_to_open ) : for( aswMap::iterator it = m_audioIfaceSetupWidgets.begin(); it != m_audioIfaceSetupWidgets.end(); ++it ) { + m_audioIfaceNames[tr( it.key() )] = it.key(); + } + for( trMap::iterator it = m_audioIfaceNames.begin(); + it != m_audioIfaceNames.end(); ++it ) + { #ifdef QT4 - it.value()->hide(); - asw_layout->addWidget( it.value() ); + QWidget * audioWidget = m_audioIfaceSetupWidgets[it.value()]; #else - it.data()->hide(); - asw_layout->addWidget( it.data() ); + QWidget * audioWidget = m_audioIfaceSetupWidgets[it.data()]; #endif + audioWidget->hide(); + asw_layout->addWidget( audioWidget ); m_audioInterfaces->addItem( it.key() ); } #ifdef QT4 m_audioInterfaces->setCurrentIndex( m_audioInterfaces->findText( - eng()->getMixer()->audioDevName() ) ); + tr( eng()->getMixer()->audioDevName() ) ) ); #else - m_audioInterfaces->setCurrentText( eng()->getMixer()->audioDevName() ); + m_audioInterfaces->setCurrentText( + tr( eng()->getMixer()->audioDevName() ) ); #endif m_audioIfaceSetupWidgets[eng()->getMixer()->audioDevName()]->show(); @@ -635,21 +641,27 @@ setupDialog::setupDialog( engine * _engine, configTabs _tab_to_open ) : for( mswMap::iterator it = m_midiIfaceSetupWidgets.begin(); it != m_midiIfaceSetupWidgets.end(); ++it ) { + m_midiIfaceNames[tr( it.key() )] = it.key(); + } + for( trMap::iterator it = m_midiIfaceNames.begin(); + it != m_midiIfaceNames.end(); ++it ) + { #ifdef QT4 - it.value()->hide(); - msw_layout->addWidget( it.value() ); + QWidget * midiWidget = m_midiIfaceSetupWidgets[it.value()]; #else - msw_layout->addWidget( it.data() ); - it.data()->hide(); + QWidget * midiWidget = m_midiIfaceSetupWidgets[it.data()]; #endif + midiWidget->hide(); + msw_layout->addWidget( midiWidget ); m_midiInterfaces->addItem( it.key() ); } #ifdef QT4 m_midiInterfaces->setCurrentIndex( m_midiInterfaces->findText( - eng()->getMixer()->midiClientName() ) ); + tr( eng()->getMixer()->midiClientName() ) ) ); #else - m_midiInterfaces->setCurrentText( eng()->getMixer()->midiClientName() ); + m_midiInterfaces->setCurrentText( + tr( eng()->getMixer()->midiClientName() ) ); #endif m_midiIfaceSetupWidgets[eng()->getMixer()->midiClientName()]->show(); @@ -737,9 +749,9 @@ void setupDialog::accept( void ) configManager::inst()->setValue( "mixer", "framesperaudiobuffer", QString::number( m_bufferSize ) ); configManager::inst()->setValue( "mixer", "audiodev", - m_audioInterfaces->currentText() ); + m_audioIfaceNames[m_audioInterfaces->currentText()] ); configManager::inst()->setValue( "mixer", "mididev", - m_midiInterfaces->currentText() ); + m_midiIfaceNames[m_midiInterfaces->currentText()] ); configManager::inst()->setValue( "tooltips", "disabled", QString::number( m_disableToolTips ) ); configManager::inst()->setValue( "knobs", "classicalusability", @@ -1122,7 +1134,7 @@ void setupDialog::audioInterfaceChanged( const QString & _iface ) #endif } - m_audioIfaceSetupWidgets[_iface]->show(); + m_audioIfaceSetupWidgets[m_audioIfaceNames[_iface]]->show(); } @@ -1160,7 +1172,7 @@ void setupDialog::midiInterfaceChanged( const QString & _iface ) #endif } - m_midiIfaceSetupWidgets[_iface]->show(); + m_midiIfaceSetupWidgets[m_midiIfaceNames[_iface]]->show(); }