mirror of https://github.com/odrling/Aegisub
Fixing a file not meant to be changed last revision
Originally committed to SVN as r817.
This commit is contained in:
parent
37865943da
commit
ee3238a657
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue