mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 11:14:00 +00:00
Reset sound selection on click
This commit is contained in:
parent
19c8663dcd
commit
5ff2c6c8cc
|
@ -37,7 +37,6 @@
|
||||||
- (void)updateMenus;
|
- (void)updateMenus;
|
||||||
|
|
||||||
- (void (^)()) willPlaySequence:(MusicSequence)music;
|
- (void (^)()) willPlaySequence:(MusicSequence)music;
|
||||||
- (void) playWasPaused;
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
|
@ -211,6 +211,8 @@ VLSequenceCallback(
|
||||||
fSelStart = startMeas;
|
fSelStart = startMeas;
|
||||||
fSelEnd = endMeas;
|
fSelEnd = endMeas;
|
||||||
fCursorRegion = kRegionMeasure;
|
fCursorRegion = kRegionMeasure;
|
||||||
|
|
||||||
|
VLSoundOut::Instance()->ResetSelection();
|
||||||
|
|
||||||
[self updateMenus];
|
[self updateMenus];
|
||||||
[self setNeedsDisplay:YES];
|
[self setNeedsDisplay:YES];
|
||||||
|
|
|
@ -38,6 +38,7 @@ public:
|
||||||
virtual bool Playing();
|
virtual bool Playing();
|
||||||
virtual bool AtEnd();
|
virtual bool AtEnd();
|
||||||
virtual bool AtBeginning();
|
virtual bool AtBeginning();
|
||||||
|
virtual void ResetSelection();
|
||||||
virtual void SetPlayRate(float rate);
|
virtual void SetPlayRate(float rate);
|
||||||
virtual void Fwd();
|
virtual void Fwd();
|
||||||
virtual void Bck();
|
virtual void Bck();
|
||||||
|
@ -395,6 +396,11 @@ bool VLAUSoundOut::AtBeginning()
|
||||||
return MusicPlayerGetTime(fPlayer, &time) || !time;
|
return MusicPlayerGetTime(fPlayer, &time) || !time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void VLAUSoundOut::ResetSelection()
|
||||||
|
{
|
||||||
|
fWasAtEnd = true;
|
||||||
|
}
|
||||||
|
|
||||||
void VLAUSoundOut::PollMusic()
|
void VLAUSoundOut::PollMusic()
|
||||||
{
|
{
|
||||||
if (fRunning && AtEnd()) {
|
if (fRunning && AtEnd()) {
|
||||||
|
|
|
@ -48,6 +48,7 @@ public:
|
||||||
virtual bool Playing() = 0;
|
virtual bool Playing() = 0;
|
||||||
virtual bool AtEnd() = 0;
|
virtual bool AtEnd() = 0;
|
||||||
virtual bool AtBeginning() = 0;
|
virtual bool AtBeginning() = 0;
|
||||||
|
virtual void ResetSelection() = 0;
|
||||||
virtual void SetPlayRate(float rate) = 0;
|
virtual void SetPlayRate(float rate) = 0;
|
||||||
virtual void Fwd() = 0;
|
virtual void Fwd() = 0;
|
||||||
virtual void Bck() = 0;
|
virtual void Bck() = 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user