~ubuntu-branches/ubuntu/trusty/psychtoolbox-3/trusty-proposed

« back to all changes in this revision

Viewing changes to Psychtoolbox/PsychDemos/BasicSoundScheduleDemo.m

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2013-11-19 23:34:50 UTC
  • mfrom: (3.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20131119233450-f7nf92vb8qavjmk8
Tags: 3.0.11.20131017.dfsg1-3
Upload to unsable since fresh glew has arrived to sid!

Show diffs side-by-side

added added

removed removed

Lines of Context:
231
231
            end
232
232
        else
233
233
            % Space key pressed and engine stopped?
234
 
            if keyCode(keyspace) & (s.Active == 0) %#ok<AND2>
 
234
            if keyCode(keyspace) && (s.Active == 0)
235
235
                % Reset schedule to ready state, and restart sound playback of
236
236
                % the whole current schedule:
237
237
                PsychPortAudio('UseSchedule', pahandle, 3);
245
245
        end
246
246
    else
247
247
        % No key pressed. Give some feedback to user:
248
 
        if (s.Active == 0) & (notprinted == 1) %#ok<AND2>
 
248
        if (s.Active == 0) && (notprinted == 1)
249
249
            fprintf('Audio playback paused: Press key F1 to F10 or any letter key for a sound, SPACE for replay, or any other key to quit.\n');
250
250
            notprinted = 0;
251
251
        end