Fixing a file not meant to be changed last revision

Originally committed to SVN as r817.
This commit is contained in:
Dan Donovan 2007-01-17 05:13:02 +00:00
parent 37865943da
commit ee3238a657
2 changed files with 5 additions and 5 deletions

View File

@ -443,11 +443,11 @@ void AudioKaraoke::OnMouse(wxMouseEvent &event) {
Refresh(false);
}
// Released left button
else if (0&&event.LeftUp()) {
else if (event.LeftUp()) {
ReleaseMouse();
}
// Released right button; make a menu for selecting \k type
else if (0&&event.RightUp()) {
else if (event.RightUp()) {
ReleaseMouse();
AudioKaraokeTagMenu menu(this);

View File

@ -675,11 +675,11 @@ void SubtitlesGrid::OnAudioClip(wxCommandEvent &event) {
size_t spr = 65536/(provider->GetBytesPerSample()*provider->GetChannels());
for(int i=start;i<end;i+=spr) {
int len=(i+spr>end)?(end-i):spr;
size_t thisbufsize=len*(provider->GetBytesPerSample()*provider->GetChannels());
void *buf = malloc(thisbufsize);
bufsize=len*(provider->GetBytesPerSample()*provider->GetChannels());
void *buf = malloc(bufsize);
if (buf) {
provider->GetAudio(buf,i,len);
outfile.write((char*)buf,thisbufsize);
outfile.write((char*)buf,bufsize);
free(buf);
}
else if (spr>128) {