You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: squeakData.m
    path of file: ./repos/DeepSqueak/Functions
    
    the code of the file until where you have to start completion: classdef squeakData < handle
    properties
        calls
        currentcall = 1
        current_call_valid = true
        windowposition = 1;
        lastWindowPosition = -1;
        cmap = 'inferno'
        cmapName 
    
function set.audiodata(obj, audiodata)
            obj.StoredSamples = [];
            obj.AudioStartSample = 0;
            obj.AudioStopSample = 0;
            obj.audiodata = audiodata;
        end
        
        
        function samples = AudioSamples(obj, startTime, finalTime)
            startTime = max(startTime, 0);
            startSample = round(startTime*obj.audiodata.SampleRate);
            finalSample = round(finalTime*obj.audiodata.SampleRate);
            
            startSample = max(startSample, 1);
            finalSample = min(finalSample, obj.audiodata.TotalSamples);
            
            if finalSample > obj.AudioStopSample || startSample < obj.AudioStartSample
                obj.AudioStartSample = round(obj.audiodata.SampleRate .* startTime);
                obj.AudioStartSample = max(obj.AudioStartSample,1);
                obj.AudioStopSample  = round(obj.audiodata.SampleRate .* (finalTime));
                obj.AudioStopSample  = min(obj.AudioStopSample, obj.audiodata.TotalSamples);
                obj.StoredSamples = audioread(obj.audiodata.Filename, [obj.AudioStartSample, obj.AudioStopSample]);
            end