diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-10-14 00:08:50 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-10-14 00:08:50 +0000 |
commit | 8d0b7a6cd835b1a8d8dae020b8ad50ab5451b1da (patch) | |
tree | de1c1d34e0c99b92317693de53a88772e1210f94 /src/myriad.cpp | |
parent | fc16fc104a038146c8ab6c2e9fad38e18663a09f (diff) | |
download | libbu++-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.cpp | 12 |
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 | ||
475 | bool Bu::Myriad::hasStream( int iId ) | ||
476 | { | ||
477 | try | ||
478 | { | ||
479 | findStream( iId ); | ||
480 | return true; | ||
481 | }catch(...) | ||
482 | { | ||
483 | return false; | ||
484 | } | ||
485 | } | ||
486 | |||
475 | Bu::MyriadStream Bu::Myriad::openStream( int iId ) | 487 | Bu::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; |