function y_new = resampleSound(y, Fs_old, Fs_new)
    Fs_ratio = Fs_old/Fs_new;
    if Fs_ratio < 1 
        error('Az Fs_old kisebb, mint az Fs_new.');
    end
    
    selected_indexes=round(1:Fs_ratio:length(y));
    y_new = y(selected_indexes);
end