why current sample always is 513 in audioplayer properties?

조회 수: 1 (최근 30일)
Seetha Rama Raju Sanapala
Seetha Rama Raju Sanapala 2017년 11월 25일
댓글: Seetha Rama Raju Sanapala 2017년 11월 27일
I have used audioplayer several times and do not understand the meaning of several properties of audioplayer that is displayed on the command window. I noticed always the current sample is shown as 513.
ans =
audioplayer with properties:
SampleRate: 16000
BitsPerSample: 16
NumberOfChannels: 1
DeviceID: -1
CurrentSample: 513
TotalSamples: 1766400
Running: 'on'
StartFcn: []
StopFcn: []
TimerFcn: []
TimerPeriod: 0.0500
Tag: ''
UserData: []
Type: 'audioplayer'
Specifically, I do not understand the terms below and why their values are as they are
DeviceID: -1
CurrentSample: 513
Running: 'on'
StartFcn: []
StopFcn: []
TimerFcn: []
TimerPeriod: 0.0500
Tag: ''
UserData: []
Type: 'audioplayer'
  댓글 수: 2
Jan
Jan 2017년 11월 25일
Perhaps you want to post the command, which produces this answer, such that we can reproduce the output without guessing.
The properties "StartFcn", "StopFcn", "TimerFcn", "Tag", "UserData" and "Type" seems to be trivial and are explained in the documentation. What does
doc audioplayer
not explain?
Seetha Rama Raju Sanapala
Seetha Rama Raju Sanapala 2017년 11월 27일
@Jan Simon;
aro=audiorecorder(16000,16,1); record(aro);
>> stop(aro) >> play(aro)
ans =
audioplayer with properties:
SampleRate: 16000
BitsPerSample: 16
NumberOfChannels: 1
DeviceID: -1
CurrentSample: 513
TotalSamples: 282624
Running: 'on'
StartFcn: []
StopFcn: []
TimerFcn: []
TimerPeriod: 0.0500
Tag: ''
UserData: []
Type: 'audioplayer'
Whatever you record, the current sample is always 513. Why?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by