* fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::write): Set
bytes_to_write to 0 in case it fits into the buffer, otherwise suffer early EOF in caller.
This commit is contained in:
parent
9eba4de269
commit
cd1a95f55a
@ -1,3 +1,9 @@
|
||||
2012-02-09 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::write): Set
|
||||
bytes_to_write to 0 in case it fits into the buffer, otherwise suffer
|
||||
early EOF in caller.
|
||||
|
||||
2012-02-09 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* dll_init.h (struct dll): Re-add modname.
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* fhandler_dev_dsp: code to emulate OSS sound model /dev/dsp
|
||||
|
||||
Copyright 2001, 2002, 2003, 2004, 2008, 2011 Red Hat, Inc
|
||||
Copyright 2001, 2002, 2003, 2004, 2008, 2011, 2012 Red Hat, Inc
|
||||
|
||||
Written by Andy Younger (andy@snoogie.demon.co.uk)
|
||||
Extended by Gerd Spalink (Gerd.Spalink@t-online.de)
|
||||
@ -478,6 +478,7 @@ fhandler_dev_dsp::Audio_out::write (const char *pSampleData, int nBytes)
|
||||
{ // all data fits into the current block, with some space left
|
||||
memcpy (&pHdr_->lpData[bufferIndex_], pSampleData, bytes_to_write);
|
||||
bufferIndex_ += bytes_to_write;
|
||||
bytes_to_write = 0;
|
||||
break;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user