summaryrefslogtreecommitdiff
path: root/src/myriad.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-10-14 00:08:50 +0000
committerMike Buland <eichlan@xagasoft.com>2010-10-14 00:08:50 +0000
commit8d0b7a6cd835b1a8d8dae020b8ad50ab5451b1da (patch)
treede1c1d34e0c99b92317693de53a88772e1210f94 /src/myriad.cpp
parentfc16fc104a038146c8ab6c2e9fad38e18663a09f (diff)
downloadlibbu++-8d0b7a6cd835b1a8d8dae020b8ad50ab5451b1da.tar.gz
libbu++-8d0b7a6cd835b1a8d8dae020b8ad50ab5451b1da.tar.bz2
libbu++-8d0b7a6cd835b1a8d8dae020b8ad50ab5451b1da.tar.xz
libbu++-8d0b7a6cd835b1a8d8dae020b8ad50ab5451b1da.zip
Minor tweaks to myriad.
Diffstat (limited to 'src/myriad.cpp')
-rw-r--r--src/myriad.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/myriad.cpp b/src/myriad.cpp
index 8650a1c..c3eb97e 100644
--- a/src/myriad.cpp
+++ b/src/myriad.cpp
@@ -472,6 +472,18 @@ int Bu::Myriad::getStreamSize( int iId )
472 return findStream( iId )->iSize; 472 return findStream( iId )->iSize;
473} 473}
474 474
475bool Bu::Myriad::hasStream( int iId )
476{
477 try
478 {
479 findStream( iId );
480 return true;
481 }catch(...)
482 {
483 return false;
484 }
485}
486
475Bu::MyriadStream Bu::Myriad::openStream( int iId ) 487Bu::MyriadStream Bu::Myriad::openStream( int iId )
476{ 488{
477 //sio << "Myriad: Request to open stream: " << iId << sio.nl; 489 //sio << "Myriad: Request to open stream: " << iId << sio.nl;