comparison scripts/audio/@audiorecorder/__get_properties__.m @ 19522:ee3ec3f02358

maint: moved @audiorecorder and @audioplayer folders inside the audio folder
author Vytautas Jančauskas <unaudio@gmail.com>
date Wed, 18 Sep 2013 00:16:28 +0300
parents scripts/@audiorecorder/__get_properties__.m@e1f98e402a7e
children 8bb399569393
comparison
equal deleted inserted replaced
19521:480407a8d226 19522:ee3ec3f02358
1 function properties = __get_properties__ (recorder)
2 properties.BitsPerSample = __recorder_get_nbits__ (struct(recorder).recorder);
3 properties.CurrentSample = __recorder_get_sample_number__ (struct(recorder).recorder);
4 properties.DeviceID = __recorder_get_id__ (struct(recorder).recorder);
5 properties.NumberOfChannels = __recorder_get_channels__ (struct(recorder).recorder);
6 if __recorder_isrecording__ (struct(recorder).recorder)
7 running = "on";
8 else
9 running = "off";
10 endif
11 properties.Running = running;
12 properties.SampleRate = __recorder_get_fs__ (struct (recorder).recorder);
13 properties.TotalSamples = __recorder_get_total_samples__ (struct (recorder).recorder);
14 properties.Tag = __recorder_get_tag__ (struct (recorder).recorder);
15 properties.Type = "audiorecorder";
16 properties.UserData = __recorder_get_userdata__ (struct (recorder).recorder);
17 endfunction